4 ms·
Agreed! This is my biggest need. If you want to contribute, or know of any open source libraries that might help me build a more robust parser, let me know -- I
by nobody_nothing 6y ago
Agreed! This is my biggest need. If you want to contribute, or know of any open source libraries that might help me build a more robust parser, let me know -- I'm only a casual coder, and this project really stretched my capabilities of recursive thought ::o
The parser in its current form is here: https://github.com/gamburg/margin/blob/master/parser/js/MarginParser.js https://github.com/gamburg/margin/blob/master/parser/js/Marg...
- oefrha 6y agoYou could consider parsing into Pandoc AST (just need to output the JSON representation of it). Then you can automatically interface with all the output formats supported by Pandoc, including HTML. See pandoc --from json, and https://pandoc.org/using-the-pandoc-api.html https://pandoc.org/using-the-pandoc-api.html
- nobody_nothing 6y agoThanks! This is useful.