kristapsdz / lowdown

simple markdown translator
https://kristaps.bsd.lv/lowdown
ISC License
294 stars 36 forks source link

Directly construsting the AST #131

Open Ericson2314 opened 9 months ago

Ericson2314 commented 9 months ago

Hi, https://github.com/nixos/nix current uses lowdown for all manner of documentation purposes. For some autogenerated documentation, we currently do things in a rather ad-hoc way. It would be much nicer to instead directly construct the lowdown AST, rather than crudely pasting together strings that lowdown later parses. Is it at all ergonomic to do this today / is there any documentation on how to do this?

Ericson2314 commented 8 months ago

OK I see most of the needed stuff is in lowdown.h and am making progress.

Ericson2314 commented 8 months ago

My attempt to do some of this is in https://github.com/NixOS/nix/pull/9732. It's currently crashing but that might be my fault.