Mdbook preprocessor: how to apply classes to markdown items?

· Users Rust Lang · Sept. 14, 2026, 10:53 a.m.
Summary
This blog post discusses challenges and solutions related to enhancing mdbook with custom classes for Markdown items. The author explores the inner workings of the mdbook preprocessor, detailing their attempts to apply classes while facing issues with HTML output. Ultimately, they seek advice on properly enclosing items in containers with class names, highlighting a practical problem faced by developers using mdbook.
AUTHOR