Multi code block support
This commit is contained in:
@@ -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>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user