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>`;
}
}

View File

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