mirror of https://github.com/zer0bin-dev/zer0bin
fix: 🐛 Fix `md` with newline
This commit is contained in:
parent
807aa1f516
commit
e863421fae
|
@ -130,7 +130,7 @@ function viewPaste(content: string, views: string) {
|
|||
for (let i = 1; i <= content.split("\n").length; i++) {
|
||||
lineNumbers.innerHTML = lineNumbers.innerHTML + `${i}<br>`
|
||||
}
|
||||
if (content.startsWith("---") || content.startsWith("md ")) {
|
||||
if (content.startsWith("---") || content.startsWith("md ") || content.startsWith("md\n")) {
|
||||
codeView.innerHTML = marked.parse(content.substring(3))
|
||||
hide(lineNumbers)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue