From fd3c8d8e101456e9f003d761575ac5b1f5ebc00f Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Tue, 9 Jun 2020 20:36:54 +0200 Subject: [PATCH] Render code fences as full text --- editor/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }