mdbook-regex-0.0.2 is not a library.
A Rust preprocessor for mdBook, replacing regular expression patterns with specified strings. Regex syntax is based on the Regex Rust crate.
Usage
Install the crate
cargo install mdbook-regex
Specify the patterns and string replacement in a .json
file
Add the preprocessor to your book.toml
file, and specify the path of the .json
patterns file
[]
= "path/to/patterns.json"
Example
The following pattern
allows the creation of collapsible regions, turning this
``collapse:Title
Content
``
into this
<details>
<summary>Title</summary>
<div class='collapsed'>
Content
</div>
</details>