mdbook-alerts

Crates.iomdbook-alerts
lib.rsmdbook-alerts
version0.8.0
created_at2024-01-14 17:59:10.807428+00
updated_at2025-06-29 02:33:30.841793+00
descriptionmdBook preprocessor to add GitHub Flavored Markdown's Alerts to your book
homepage
repositoryhttps://github.com/lambdalisue/rs-mdbook-alerts
max_upload_size
id1099598
size130,030
Λlisue (lambdalisue)

documentation

README

crates.io docs.rs MIT License Build Test Audit

mdbook-alerts

mdBook preprocessor to add GitHub Flavored Markdown's Alerts to your book like:

> [!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

Rendered example

Usage

First, install the preprocessor:

cargo install mdbook-alerts

Then, add the preprocessor to your book.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. Contributors need to agree that any modifications sent to this repository follow the license.

Commit count: 181

cargo fmt