mdbook-replace

Crates.iomdbook-replace
lib.rsmdbook-replace
version0.1.0
created_at2025-11-25 19:06:28.4382+00
updated_at2025-11-25 19:06:28.4382+00
descriptionmdBook preprocessor that simply replaces text
homepage
repositoryhttps://github.com/jdh8/mdbook-replace
max_upload_size
id1950305
size14,197
Chen-Pang He (jdh8)

documentation

README

mdbook-replace

Build status Crates.io Documentation

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>"
Commit count: 0

cargo fmt