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