Plugins case study: mdBook preprocessors
eli.thegreenplace.net·9h
🦀Rust Compiler Internals
Preview
Report Post

mdBook is a tool for easily creating books out of Markdown files. It’s very popular in the Rust ecosystem, where it’s used (among other things) to publish the official Rust book.

mdBook has a simple yet effective plugin mechanism that can be used to modify the book output in arbitrary ways, using any programming language or tool. This post describes the mechanism and how it aligns with the fundamental concepts of plugin infrastructures.

mdBook preprocessors

mdBook’s architecture is pretty simple: your contents go into a directory tree of Markdown files. mdBook then renders these into a book, with one file…

Similar Posts

Loading similar posts...