3 ms·
Quite promising: one thing that would probably accelerate adoption would be to provide at least one language parser that can go to/from the format to a data str
by fomojola 6y ago
Quite promising: one thing that would probably accelerate adoption would be to provide at least one language parser that can go to/from the format to a data structure of some kind.
- nobody_nothing 6y agoAgreed! 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.