Multi code block support

This commit is contained in:
2023-09-17 08:29:49 +02:00
parent 8878cec830
commit dbb51984e2
2 changed files with 2 additions and 11 deletions

View File

@@ -306,10 +306,7 @@ class MultiLineCode extends Symbol {
return instance;
}
render() {
return this.text
.split("\n")
.map((text) => `<code style="display: block;">${text}</code>`)
.join("");
return `<pre><code>${this.text}</code></pre>`;
}
}