#mdbook-preprocessor #github #markdown #preprocessor

bin+lib mdbook-alerts

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

15 unstable releases (5 breaking)

new 0.6.8 Oct 24, 2024
0.6.6 Sep 20, 2024
0.6.1 Jul 29, 2024
0.4.0 Jan 14, 2024

#278 in Text processing

Download history 153/week @ 2024-07-03 168/week @ 2024-07-10 94/week @ 2024-07-17 366/week @ 2024-07-24 296/week @ 2024-07-31 247/week @ 2024-08-07 231/week @ 2024-08-14 305/week @ 2024-08-21 215/week @ 2024-08-28 165/week @ 2024-09-04 234/week @ 2024-09-11 559/week @ 2024-09-18 291/week @ 2024-09-25 529/week @ 2024-10-02 249/week @ 2024-10-09 356/week @ 2024-10-16

1,491 downloads per month

MIT license

60KB
112 lines

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.

Dependencies

~13–24MB
~337K SLoC