developit / snarkdown

:smirk_cat: A snarky 1kb Markdown parser written in JavaScript
http://jsfiddle.net/developit/828w6t1x/
MIT License
2.28k stars 110 forks source link

Markdown code not formatting correctly on uptime website #96

Open Soneji opened 3 years ago

Soneji commented 3 years ago

Describe the bug Markdown code not formatting correctly on uptime website.

To Reproduce

Comment on issue with some code using `````` triple backticks Go to issue on website Expected behavior Code block in html

Screenshots image

Issue in GitHub with proper code formatting: iskconpandavasena/uptime#1 Issue on website without proper code formatting: https://uptime.psena.com/incident/1

Desktop (please complete the following information):

OS: MacOS Browser Chrome Version 87.0

Soneji commented 3 years ago

I think it might be because inside my code block there are backticks.

developit commented 2 years ago

It looks like this was a regression in 2.0.0.

swyxio commented 2 years ago

for those finding this before a more permanent fix - there's a replacement strategy that is working for my usecase in one of the other issues: https://github.com/developit/snarkdown/issues/11#issuecomment-813364966 which is linked to /r/n newlines https://github.com/developit/snarkdown/issues/69