mirror of https://github.com/zer0bin-dev/zer0bin
feat: ✨ Also check for `md ` to start markdown
This commit is contained in:
parent
4e25416f80
commit
525a254531
|
@ -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("---")) {
|
||||
if (content.startsWith("---") or content.startsWith("md ")) {
|
||||
codeView.innerHTML = marked.parse(content.substring(3))
|
||||
hide(lineNumbers)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue