nodejs/changelog-maker

Stop escaping markdown characters inside code blocks

XhmikosR opened this issue · 6 comments

@XhmikosR would you be fine to open a PR to fix this? I think that would be ideal :-)

It's tricky so I was hoping someone else could tackle this :)

Otherwise I'll try to find a solution.

I've come up with this but I'm not sure if it's the best solution...

https://regex101.com/r/t90Tqw/2

Trott commented

I suspect a regexp will never be 100% reliable, but it can probably be sufficiently reliable. 100% reliability would probably require doing proper parsing instead of regexp matching.

I don't think my regex is good. I'll see if I can improve it and make a PR.

Unfortunately, the project doesn't work on Windows, so I can't do a lot.