#mdbook #github #preprocessor #markdown

bin+lib mdbook-alerts

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

5 releases (breaking)

0.5.0 Apr 20, 2024
0.4.0 Jan 14, 2024
0.3.0 Jan 14, 2024
0.2.0 Jan 14, 2024
0.1.0 Jan 14, 2024

#558 in Text processing

Download history 10/week @ 2024-02-17 12/week @ 2024-02-24 1/week @ 2024-03-02 2/week @ 2024-03-09 39/week @ 2024-03-30 6/week @ 2024-04-06 5/week @ 2024-04-13 194/week @ 2024-04-20 42/week @ 2024-04-27 38/week @ 2024-05-04

280 downloads per month

MIT license

59KB
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
~335K SLoC