expressive-code / expressive-code

A text marking & annotation engine for presenting source code on the web.

Home Page:https://expressive-code.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marker labels can't include backslash

stancl opened this issue · comments

Hey! I'm trying to use a {"marker label": 1-2} that includes a \ but seems like they always get stripped no matter how they're formatted? I tried \\ (even \\\ and \\\\) in both '' and "" strings but seems like EC always strips them out.

Thanks!

Thank you for reporting this! I have fixed the issue in version 0.35.2, which I just released to NPM. In MDX files, \\ should be enough now to get a backslash in the output. In MD files, even \ should work, but I'd personally just use \\ everywhere. :)

Thanks a lot for the quick fix!