put code block on new line

This commit is contained in:
Bruno Windels 2019-05-21 19:45:12 +02:00
parent 53b6586986
commit 5f5a2f7140

View file

@ -56,7 +56,7 @@ function parseHtmlMessage(html, room) {
case "STRONG":
return new PlainPart(`**${n.textContent}**`);
case "PRE":
return new PlainPart(`\`\`\`${n.textContent}\`\`\``);
return new PlainPart(`\`\`\`\n${n.textContent}\`\`\``);
case "CODE":
return new PlainPart(`\`${n.textContent}\``);
default: