diff --git a/editor/src/index.js b/editor/src/index.js index c6d57a3..b66d1ec 100644 --- a/editor/src/index.js +++ b/editor/src/index.js @@ -173,7 +173,7 @@ if (holder) { })).use(MarkdownItMark) const options = { transform(text, callback) { - let converted = MD.renderInline(text) + let converted = (text.startsWith("```", 0)) ? MD.render(text) : MD.renderInline(text) return callback(converted) } }