mirror of https://github.com/zer0bin-dev/zer0bin
fix: 💄 Hide line numbers when viewing markdown
This commit is contained in:
parent
4ed5065bef
commit
dbfed7a7dc
|
@ -132,6 +132,7 @@ function viewPaste(content: string, views: string) {
|
|||
}
|
||||
if (content.startsWith("---")) {
|
||||
codeView.innerHTML = marked.parse(content)
|
||||
hide(lineNumbers)
|
||||
} else {
|
||||
codeView.innerHTML = hljs.highlightAuto(content).value
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue