Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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



I wrote a manual parser with look-aheads in Erlang (making extensive use of Erlang's pattern matching.

https://github.com/hypernumbers/erlmarkdown

No regexps.... except for url's and emails :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: