snarkdown icon indicating copy to clipboard operation
snarkdown copied to clipboard

Markdown code not formatting correctly on uptime website

Open Soneji opened this issue 5 years ago • 3 comments

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 avatar Jan 24 '21 11:01 Soneji

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

Soneji avatar Jan 24 '21 11:01 Soneji

It looks like this was a regression in 2.0.0.

developit avatar Jan 10 '22 15:01 developit

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

swyxio avatar Jan 10 '22 16:01 swyxio