less escaping for backticks

pull/21833/head
Bruno Windels 2019-05-31 11:06:15 +02:00
parent 686045b46a
commit 78fbea307c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {