Skip to content

Comment on Show HN: Margin – A lightweight, flexible markup language for structured thought

Comments

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.

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/Marg...

You 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

Thanks! This is useful.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.