Create markdown-it plugin to escape LaTeX#865
Conversation
|
It's been mostly tested and seems to work fine, so I'm opening it for review. |
cdbf501 to
844a58e
Compare
844a58e to
4162412
Compare
|
Okay, after fixing the most stupid mistake ever (return failure if validate is true), I have actually gotten all of my test posts rendering correctly. |
There was a problem hiding this comment.
I learned a lot of new regex things reviewing this PR 😂
Reluctant matching and how [^] works in Javascript regex.
I'm a bit curious though why the "sticky" flag (/y) is set on the regexes and what the effect of that is on your regex. Does that ensure it doesn't match inside of another match?
(MDN) |
Should fix #435. However, I haven't fully tested this yet, so feedback is welcome.