Image

Eli Bendersky: Plugins case study: mdBook preprocessors

mdBookis 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 publishthe 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 thefundamental concepts of plugin infrastructures.

https://eli.thegreenplace.net/2025/plugins-case-study-mdbook-preprocessors/