pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.49k stars 105 forks source link

Escaped semi-colons after bold text in markdown render the backslash escape character #516

Open AlexGidman opened 1 year ago

AlexGidman commented 1 year ago

We're using a CMS that adds escape characters on publish. We've just moved to svelte using MDsveX to pre-process markdown files. The previous system we used would happily accept the following

**Text**\: and render it as Text:

However, MDsveX renders the backslash as follows:

Text\:

Other markdown previewers we've used to check this behaviour (including the GitHub comment section) ignore and do not render the escape character, so we suspect this is specific to MDsveX.

dbaynard commented 3 weeks ago

Hello, I can reproduce this — in my case, I have \$ in the markdown, which is rendered as \$, rather than $ (as would be the case for a commonmark parser). All the other software handling this text is commonmark compatible.

I've tried using remark-plugin-math to no avail. I even started to implement an ad-hoc plugin, that just handles these escape sequences, before I found this issue.

What is the current status of work on this?

dbaynard commented 1 week ago

Hello, please excuse the bump on this. It seems like a renderer bug like this should be high priority — I see it has been assigned, but there's no timeline on a fix. I'm willing to help — @pngwn what is your current state of progress?