test: ⚗️ Debug test of Markdown

This commit is contained in:
ThatOneCalculator 2022-03-23 11:29:19 -07:00
parent f35b619619
commit 1ffb3abdfd
1 changed files with 2 additions and 1 deletions

View File

@ -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
}