From 78fbea307c47840fb74c5ccf204437fa0f569195 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 31 May 2019 11:06:15 +0200 Subject: [PATCH] less escaping for backticks --- src/editor/deserialize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/deserialize.js b/src/editor/deserialize.js index c3f7096497..64b219c2a9 100644 --- a/src/editor/deserialize.js +++ b/src/editor/deserialize.js @@ -47,7 +47,7 @@ function parseLink(a, room) { function parseCodeBlock(n) { const parts = []; - const preLines = `\`\`\`\n${n.textContent}\`\`\``.split("\n"); + const preLines = ("```\n" + n.textContent + "```").split("\n"); preLines.forEach((l, i) => { parts.push(new PlainPart(l)); if (i < preLines.length - 1) {