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; return instance;
} }
render() { render() {
return this.text return `<pre><code>${this.text}</code></pre>`;
.split("\n")
.map((text) => `<code style="display: block;">${text}</code>`)
.join("");
} }
} }

View File

@@ -21,12 +21,6 @@ But it's a start!
Oh and I need some test markdown symbols to practice on.. Oh and I need some test markdown symbols to practice on..
```
codeblock
codeblock
```
# H1 # H1
## H2 ## H2
@@ -58,7 +52,7 @@ Of
Code Code
``` ```
```typescript ```
// Multi line code snippet with typescript syntax highlighting // Multi line code snippet with typescript syntax highlighting
const x: string = "arst"; const x: string = "arst";
const y = () => { const y = () => {