3 ms·
>I would love pointers to Markdown processors that are implemented in a more principled way than the original code, for example using standard-looking lexing an
by draegtun 14y ago
>I would love pointers to Markdown processors that are implemented in a more principled way than the original code, for example using standard-looking lexing and parsing passes...
Have a look at Markdent - An event-based Markdown parser toolkit.
https://metacpan.org/module/Markdent https://metacpan.org/module/Markdent
- gordonguthrie 14y agoI wrote a manual parser with look-aheads in Erlang (making extensive use of Erlang's pattern matching. https://github.com/hypernumbers/erlmarkdown https://github.com/hypernumbers/erlmarkdown No regexps.... except for url's and emails :(