MdXaml icon indicating copy to clipboard operation
MdXaml copied to clipboard

Escape character \ not working correctly

Open darklinkpower opened this issue 9 months ago • 0 comments

I've noticed that the \ character is not being processed correctly as it seems to only be working when used for escaping another \ or * character but not for any other character. This causes stuff like links and images to break if there are escape characters in it and also the \ character to display when used for anything else.

Test markdown:

### Working
- \\
- \*

### Not working
- [![.jpg\]](https://steamuserimages-a.akamaihd.net/ugc/923673299818711932/AEB9D81DE88B2B9BCA368885A3B6966D32D1EF16/ ".jpg]")](https://steamuserimages-a.akamaihd.net/ugc/923673299818711932/AEB9D81DE88B2B9BCA368885A3B6966D32D1EF16/)
- \#
- \-
- \]
- \[
- \(

Using MdXaml version 1.21.0 and AvalonEdit 6.0.0 on .Net framework 4.6.2. Markdown is being set via Binding in Markdown property.

Screenshots:

MdXaml: image

VS Code preview: image

darklinkpower avatar Oct 08 '23 08:10 darklinkpower