Dear Lazyweb/Twitterverse, Do you have a favourite Markdown AST? I am already looking at Pandoc's AST for inspiration, but other examples would be useful. Any programming language is fine, I am capable of consuming ideas from most genres. Thanks, D.
5
1
2
I'd be interested to hear what the application is โ€” I like MarkDown, but whenever I try to move beyond generating a single chunk of HTML find myself having to reach for non-standard extensions.
1
I am working on a tool with a friend which consumes markdown as a semi-structured input format. In order to better report errors in the input, I want to be able to point at the line (and column perhaps) where the error exists.
1
1
We also consume YAML as input, and I wrote crates.io/crates/marked-yaml over the past couple of weeks for similar purposes :D

Feb 3, 2020 ยท 9:40 AM UTC

1
Replying to @dsilverstone
Fortuitous timing โ€” we started #rustclub on the company Slack last week, so I'm going to try and pull my finger out and finally try out Rust. One of the toy projects I was thinking off is YAML-driven...
1
Nice. There will be easier to use options (e.g. using serde and yaml-rust directly to convert from yaml to Rust structs) but if you care about provenance and reporting errors then you might find `marked-yaml` to be of use :D Issues and PRs *gratefully* received.