fix: 不再处理 span 和 a

This commit is contained in:
Zhicheng WANG 2019-01-27 22:13:07 +08:00
parent 421fc1a846
commit 5aa7fbfe64

View File

@ -2,7 +2,7 @@ const {addIdForHeaders, markAndSwapAll} = require('@awesome-fe/translate');
const {JSDOM} = require('jsdom');
const selectorGroups = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'section', 'p', 't', 'span', 'a'];
const selectorGroups = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'section', 'p', 't'];
function mark(text) {
const dom = new JSDOM(text);