You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
All: Fixed Markdown rendering when code highlighting is disabled
This commit is contained in:
@@ -409,10 +409,16 @@ export default class MdToHtml {
|
|||||||
outputCodeHtml = markdownIt.utils.escapeHtml(trimmedStr);
|
outputCodeHtml = markdownIt.utils.escapeHtml(trimmedStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
const html = `<div class="joplin-editable">${sourceBlockHtml}<pre class="hljs"><code>${outputCodeHtml}</code></pre></div>`;
|
||||||
wrapCode: false,
|
|
||||||
html: `<div class="joplin-editable">${sourceBlockHtml}<pre class="hljs"><code>${outputCodeHtml}</code></pre></div>`,
|
if (rules.fence) {
|
||||||
};
|
return {
|
||||||
|
wrapCode: false,
|
||||||
|
html: html,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
return html;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user