less escaping for backticks
parent
686045b46a
commit
78fbea307c
|
@ -47,7 +47,7 @@ function parseLink(a, room) {
|
||||||
|
|
||||||
function parseCodeBlock(n) {
|
function parseCodeBlock(n) {
|
||||||
const parts = [];
|
const parts = [];
|
||||||
const preLines = `\`\`\`\n${n.textContent}\`\`\``.split("\n");
|
const preLines = ("```\n" + n.textContent + "```").split("\n");
|
||||||
preLines.forEach((l, i) => {
|
preLines.forEach((l, i) => {
|
||||||
parts.push(new PlainPart(l));
|
parts.push(new PlainPart(l));
|
||||||
if (i < preLines.length - 1) {
|
if (i < preLines.length - 1) {
|
||||||
|
|
Loading…
Reference in New Issue