This commit is contained in:
amehime
2020-06-01 01:08:41 +08:00
parent 57c33c87bc
commit 2e0974f811

View File

@@ -82,7 +82,7 @@ module.exports = function (md, options) {
}
if (append) {
content += `${append}${line}</span><br>`;
content += `${append}">${line}</span><br>`;
} else {
content += `${line}<br>`;
}
@@ -365,7 +365,8 @@ function getOptions(info) {
mark = [];
info = info.replace(rMark, (match, _mark) => {
mark = _mark.split(',').reduce(
(prev, cur) => lineRange(prev, cur, match[1]), mark);
(prev, cur) => lineRange(prev, cur, false), mark);
return '';
})
}
@@ -390,7 +391,6 @@ function getOptions(info) {
});
}
let caption = '';
if (rCaptionUrlTitle.test(info)) {
const match = info.match(rCaptionUrlTitle);