1 unstable release
Uses new Rust 2024
| 0.1.0 | Nov 25, 2025 |
|---|
#737 in Text processing
6KB
62 lines
mdbook-replace
mdBook preprocessor that simply replaces text
This preprocessor is inspired by mdbook-abbr and mdbook-yapp.
Installation
cargo install mdbook-replace
Configuration
[preprocessor.replace]
# This enables the preprocessor
[preprocessor.replace.list]
# List the patterns and their replacements
"♠" = "<span class='♠'>♠</span>"
"♥" = "<span class='♥'>♥</span>"
"♦" = "<span class='♦'>♦</span>"
"♣" = "<span class='♣'>♣</span>"
"(R)" = "<abbr title='relay'>(R)</abbr>"
Dependencies
~8–12MB
~142K SLoC