gbdev / pandocs

The single, most comprehensive Game Boy technical reference.
https://gbdev.io/pandocs/
Creative Commons Zero v1.0 Universal
619 stars 93 forks source link

Improve the rendering pipeline #513

Closed ISSOtm closed 1 year ago

ISSOtm commented 1 year ago

Move functionality that can be from the renderer into the preproc, so they are supported even with e.g. mdbook serve, and moe robust against future mdBook updates.

Also the custom container / admonitions syntax was slightly tweaked to align with the syntax over there.

This serves as a prototype to the eventual resolution of gbdev/gb-asm-tutorial#69, since Pan Docs can benefit from the same changes, and its renderer is simpler—it was easier to tinker with.