mirror of https://github.com/zer0bin-dev/zer0bin
test: ⚗️ Debug test of Markdown
This commit is contained in:
parent
f35b619619
commit
1ffb3abdfd
|
@ -131,7 +131,8 @@ function viewPaste(content: string, views: string) {
|
|||
lineNumbers.innerHTML = lineNumbers.innerHTML + `${i}<br>`
|
||||
}
|
||||
if (content.substring(0, 3) == "---") {
|
||||
codeView.innerHTML = marked.parse(content.substring(3)).value
|
||||
console.log(marked.parse(content))
|
||||
codeView.innerHTML = marked.parse(content)
|
||||
} else {
|
||||
codeView.innerHTML = hljs.highlightAuto(content).value
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue