Update highlights to use newer oniguruma dependency, which otherwise won't compile on Node 12.
Remove cleanup grammar code, which doesn't work with newer highlights. While trying to solve some memory consumption issues, the code is actually an antipattern, which mutates the state of highlighter object. I kept the code for now to discuss how we want to proceed with the change.
highlights
to use newer oniguruma dependency, which otherwise won't compile on Node 12.highlights
. While trying to solve some memory consumption issues, the code is actually an antipattern, which mutates the state ofhighlighter
object. I kept the code for now to discuss how we want to proceed with the change.Closes https://github.com/npm/marky-markdown/issues/442
Related to github/npm#1814