https://github.com/lambdalisue/rs-mdbook-alerts
mdBook preprocessor to add GitHub Flavored Markdown's Alerts to your book
https://github.com/lambdalisue/rs-mdbook-alerts
mdbook mdbook-plugin mdbook-plugins mdbook-preprocessor
Last synced: about 2 months ago
JSON representation
mdBook preprocessor to add GitHub Flavored Markdown's Alerts to your book
- Host: GitHub
- URL: https://github.com/lambdalisue/rs-mdbook-alerts
- Owner: lambdalisue
- License: mit
- Created: 2024-01-14T17:57:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-24T03:01:08.000Z (7 months ago)
- Last Synced: 2024-10-24T15:09:04.621Z (7 months ago)
- Topics: mdbook, mdbook-plugin, mdbook-plugins, mdbook-preprocessor
- Language: CSS
- Homepage: https://crates.io/crates/mdbook-alerts
- Size: 433 KB
- Stars: 26
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://crates.io/crates/mdbook-alerts)
[](https://docs.rs/mdbook-alerts)
[](./LICENSE)
[](https://github.com/lambdalisue/rs-mdbook-alerts/actions/workflows/build.yml)
[](https://github.com/lambdalisue/rs-mdbook-alerts/actions/workflows/test.yml)
[](https://github.com/lambdalisue/rs-mdbook-alerts/actions/workflows/audit.yml)# mdbook-alerts
[mdBook] preprocessor to add [GitHub Flavored Markdown's Alerts](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts) to your book like:
```markdown
> [!NOTE]
> Highlights information that users should take into account, even when skimming.> [!TIP]
> Optional information to help a user be more successful.> [!IMPORTANT]
> Crucial information necessary for users to succeed.> [!WARNING]
> Critical content demanding immediate user attention due to potential risks.> [!CAUTION]
> Negative potential consequences of an action.
```into

[mdBook]: https://github.com/rust-lang/mdBook
## Usage
First, install the preprocessor:
```bash
cargo install mdbook-alerts
```Then, add the preprocessor to your `book.toml`:
```toml
[book]
authors = ["Alisue"]
language = "en"
multilingual = false
src = "src"
title = "mdBook Alerts preprocessor"# ADD THIS
[preprocessor.alerts]
```## License
The code follows the MIT license written in [LICENSE](./LICENSE). Contributors
need to agree that any modifications sent to this repository follow the license.