forked from Mirrors/elk
fix: convert code block
This commit is contained in:
parent
373697619f
commit
d9d2a946a4
1 changed files with 2 additions and 2 deletions
|
@ -125,8 +125,8 @@ function treeToText(input: Node): string {
|
||||||
pre = '\n'
|
pre = '\n'
|
||||||
|
|
||||||
if (input.nodeName === 'code') {
|
if (input.nodeName === 'code') {
|
||||||
pre = '`'
|
pre = '````\n'
|
||||||
post = '`'
|
post = '\n```'
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('childNodes' in input)
|
if ('childNodes' in input)
|
||||||
|
|
Loading…
Reference in a new issue