#pre-processor #mdbook #markdown

bin+lib mdbook-callouts

mdBook preprocessor to add Obsidian Flavored Markdown's Callouts to your book

3 unstable releases

0.2.1 Feb 27, 2024
0.2.0 Feb 19, 2024
0.1.0 Feb 19, 2024

#722 in Text processing

Download history 5/week @ 2024-07-15 22/week @ 2024-07-29 4/week @ 2024-08-12 15/week @ 2024-09-02 4/week @ 2024-09-16 27/week @ 2024-09-23 16/week @ 2024-10-07 7/week @ 2024-10-14 15/week @ 2024-10-21 34/week @ 2024-10-28

72 downloads per month

MIT license

1MB
121 lines

crates.io docs.rs MIT License Build Test Audit

mdbook-callouts

mdBook preprocessor to add Obsidian Flavored Markdown's Callouts to your book like:

> [!INFO]
> Highlights information of additional information that users should take into
> account, even when skimming.

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

> [!SUCCESS]
> Success information to a user.

> [!QUESTION]
> Question for the user to consider.

> [!WARNING]
> Critical content demanding immediate user attention due to potential risks.

> [!CAUTION]
> Negative potential consequences of an action.

> [!FAILURE]
> Information about a failure.

> [!DANGER]
> Information about a danger or a hazardous situation that users need to avoid.

> [!BUG]
> Information about a bug or an issue that users need to be aware of.

> [!EXAMPLE]
> Example of a point or solution that users can apply.

> [!QUOTE]
> Quoted information that is particularly relevant or insightful.

> [!QUOTE] Custom title example
> You can set a custom title by adding the title in the same line as the tag.

into

Rendered example

Rendered example 2

Rendered example 3

Rendered example 4

Rendered example 5

Usage

First, install the preprocessor:

cargo install mdbook-callouts

Then, add the preprocessor to your book.toml:

[book]
authors = ["Alisue"]
language = "en"
multilingual = false
src = "src"
title = "mdBook Alerts preprocessor"

# ADD THIS
[preprocessor.callouts]

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
~343K SLoC