Render code fences as full text
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2020-06-09 20:36:54 +02:00
parent 5be5548634
commit fd3c8d8e10

View File

@ -173,7 +173,7 @@ if (holder) {
})).use(MarkdownItMark) })).use(MarkdownItMark)
const options = { const options = {
transform(text, callback) { transform(text, callback) {
let converted = MD.renderInline(text) let converted = (text.startsWith("```", 0)) ? MD.render(text) : MD.renderInline(text)
return callback(converted) return callback(converted)
} }
} }