mirror of
https://github.com/amehime/hexo-renderer-multi-markdown-it.git
synced 2026-04-05 13:09:04 +08:00
update
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = function (md, options) {
|
||||
|
||||
const {
|
||||
firstLine = 1,
|
||||
caption,
|
||||
caption = '',
|
||||
mark = false,
|
||||
command = false
|
||||
} = getOptions(info.slice(lang.length));
|
||||
@@ -86,13 +86,11 @@ module.exports = function (md, options) {
|
||||
}
|
||||
|
||||
let result = `<figure class="highlight${langToUse ? ` ${langToUse}` : ''}">`;
|
||||
if (caption) {
|
||||
result += `<figcaption><span class="lang">${langShow}</span>${caption}</figcaption>`;
|
||||
}
|
||||
|
||||
result += `<figcaption><span class="lang">${langShow}</span>${caption}</figcaption>`;
|
||||
|
||||
result += `<table><tr><td class="gutter"><pre>${numbers}</pre></td>`;
|
||||
|
||||
|
||||
result += `<td class="code"><pre>${content}</pre></td>`;
|
||||
result += '</tr></table></figure>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user