nixpkgs/pkgs/tools/nix/nixos-render-docs
pennae 0236dcb59f nixos-render-docs: don't use markdown-it RendererProtocol
our renderers carry significantly more state than markdown-it wants to
easily cater for, and the html renderer will need even more state still.
relying on the markdown-it-provided rendering functions has already
proven to be a nuisance, and since parsing and rendering are split well
enough we can just replace the rendering part with our own stuff outright.

this also frees us from the tyranny of having to set instance variables
before calling super().__init__ just to make sure that the renderer
creation callback has access to everything it needs.
2023-02-21 18:26:39 +01:00
..
src nixos-render-docs: don't use markdown-it RendererProtocol 2023-02-21 18:26:39 +01:00
default.nix nixos-render-docs: drop frozendict 2023-02-21 18:19:00 +01:00