Некоторые доработки
This commit is contained in:
@@ -18,11 +18,17 @@ class ConvertHtml extends ConvertBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(data, opts) {
|
async run(data, opts) {
|
||||||
const checkResult = this.check(data, opts);
|
let isText = false;
|
||||||
if (!checkResult)
|
if (!opts.skipCheck) {
|
||||||
return false;
|
const checkResult = this.check(data, opts);
|
||||||
|
if (!checkResult)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
isText = checkResult.isText;
|
||||||
|
} else {
|
||||||
|
isText = opts.isText;
|
||||||
|
}
|
||||||
|
|
||||||
let {isText} = checkResult;
|
|
||||||
let titleInfo = {};
|
let titleInfo = {};
|
||||||
let desc = {_n: 'description', 'title-info': titleInfo};
|
let desc = {_n: 'description', 'title-info': titleInfo};
|
||||||
let pars = [];
|
let pars = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user