mirror of https://github.com/zer0bin-dev/zer0bin
fix: 🐛 Don't render initial `---` for markdown
This commit is contained in:
parent
dbfed7a7dc
commit
397479b13c
|
@ -131,7 +131,7 @@ function viewPaste(content: string, views: string) {
|
|||
lineNumbers.innerHTML = lineNumbers.innerHTML + `${i}<br>`
|
||||
}
|
||||
if (content.startsWith("---")) {
|
||||
codeView.innerHTML = marked.parse(content)
|
||||
codeView.innerHTML = marked.parse(content.substring(3))
|
||||
hide(lineNumbers)
|
||||
} else {
|
||||
codeView.innerHTML = hljs.highlightAuto(content).value
|
||||
|
|
Loading…
Reference in New Issue