Eli Bendersky 12/18/2025

Plugins case study: mdBook preprocessors

Read Original

This article provides an in-depth analysis of mdBook's plugin system, specifically its preprocessor mechanism. It explains how preprocessors, which can be written in any language, intercept and modify book content before rendering. The post details the plugin lifecycle—discovery via configuration, registration through a two-step invocation, and a coarse-grained hook—using a sample 'narcissist' plugin as a practical example.

Plugins case study: mdBook preprocessors

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week