Commit graph

2 commits

Author SHA1 Message Date
cobyfrombrooklyn-bot
6d0ba2ac14 Fix nested admonitions using wrong header color
Use child combinator (>) instead of descendant selector for
blockquote-tag-title color rules. Without this, a nested admonition
inherits the title color of its parent admonition instead of using
its own type's color.

Added nested admonition test case (important > note) to the existing
admonition test suite.

Fixes #3032
2026-02-22 20:44:05 -05:00
Eric Huss
873e4fe40f Add support for admonitions
This enables the admonitions support from pulldown-cmark. This includes
a config option in case it causes problems with existing books.

I would like to make this extensible in the future, though I'm not sure
what that would look like. There's also some concerns with how this will
affect translations like mdbook-i18n-helpers, which we may need to work
out in a different way.

Closes https://github.com/rust-lang/mdBook/issues/2771
2025-09-18 19:54:20 -07:00