Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blazood/mdbook-regex-replacer
this is a preprocessor which invoke regex.replace_all() to replcae all chapter content
https://github.com/blazood/mdbook-regex-replacer
Last synced: about 2 months ago
JSON representation
this is a preprocessor which invoke regex.replace_all() to replcae all chapter content
- Host: GitHub
- URL: https://github.com/blazood/mdbook-regex-replacer
- Owner: blazood
- License: mpl-2.0
- Created: 2021-03-07T06:40:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-07T08:32:22.000Z (almost 4 years ago)
- Last Synced: 2024-11-10T23:07:43.957Z (2 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - blazood/mdbook-regex-replacer - this is a preprocessor which invoke regex.replace_all() to replcae all chapter content (others)
README
# mdbook-regex-replacer
> this is a preprocessor which invoke regex.replace_all() to replcae all chapter content## quick start
### install mdbook-regex-replacer
```shell script
cargo install mdbook-regex-replacer
```### configure book.toml
```toml
[book]
authors = ["blazh"]
language = "en"
multilingual = false
src = "src"
title = "test"# add into your book.toml
[preprocessor.regex-replacer]
command="mdbook-regex-replacer"# add your regex rule
# use crates regex
# https://crates.io/crates/regex
# https://docs.rs/regex/1.4.3/regex/#example-replacement-with-named-capture-groups
[[preprocessor.regex-replacer.items]]
regex="==(?P.+?)=="
rep="$c"```