- MSRV (minimum supported rust version) is now 1.76.0 (#208)
- Add ARIA attributes to generated blocks. Thanks to @toastal for suggesting this feature! (#195)
- Note: This subtly alters the emitted HTML, and could cause additional styles applied to blocks to break. Native
mdbook-admonish
styles are not affected.
- Note: This subtly alters the emitted HTML, and could cause additional styles applied to blocks to break. Native
- Fixed some valid configurations producing TOML serialization errors. Thanks to @DianaNites for reporting this! (#197)
- Removed a stray debug statement (#186)
- Blocks should have key-value options separated by commas. Existing syntax remains is supported for back-compatibility. See the documentation on Additional Options for more details (#181)
- MSRV (minimum supported rust version) is now 1.74.0 (#175)
custom
directives should now be configured under thedirective.custom
option. Existingcustom
configurations are supported for back compatibility (#179)
- Make blocks
collapsible
on a per-directive basis. Thanks to @yannickseurin for contributing this feature! (#174)
- The
css_id_prefix
option now uses snake case for consistency (kebab case remains supported for back compatibility). Thanks to @yannickseurin for fixing this! (#173)
- Support custom directives with the new
mdbook-admonish generate-custom
helper. See the mdbook-admonish book for guidance. Thanks to @Sky9x for helping design this feature! (#165)
additional-css
unix style path normalization. Thanks to @carlocorradini for reporting and fixing! (#163)
- Styles version updated to
3.0.1
. Runmdbook-admonish install
to update.
- You can now set custom CSS ids for admonition blocks with the
id
field. Thanks to @Sky9x for contributing this feature! (#144)- You can also now customize the CSS id prefix with the config option
default.css_id_prefix
- You can also now customize the CSS id prefix with the config option
- Improve rendering of blocks in print/PDF view. Thanks to @csk111165 for the report (#152)
- Fix the default titles for
tldr
andfaq
directives looking bad. They now render asTL;DR
andFAQ
by default. Thanks @joshka for fixing this! (#154)
- Bumped internal
mdbook
version to0.4.35
(#142)
- Relaxed
clap
dependency to fix compilation error when using othermdbook-*
plugins. Thanks to @joshka for the report! (#142)
- Required styles version is now
^3.0.0
(release1.13.0
). Runmdbook-admonish install
to update. - Internal CSS classnames for directives are now prefixed with
admonish-
, sowarning
is nowadmonish-warning
. This avoids a conflict with upstream classnames introduced inmdbook 0.4.35
. Thanks to @phoenixr-codes for the report and fix! (#139)
- Some minor inconsistencies in SCSS (and downstream CSS) styles were fixed by adopting Prettier linting (#138)
- Panic when searching for an indent in non-ASCII content. Thanks to @CoralPink for the report! (#128)
- Admonitions are now supported when indented inside other elements, such as a list. Thanks to @mattburgess for the report! (#124)
- Reverted internal dependency upgrades that unintentionally increased MSRV from 1.66.0 in 1.11.0
Note: This release has been yanked.
It unintentionally increased the MSRV from 1.66.0
gnu
prebuilt binaries are now built onubuntu-20.04
to matchmdbook
binaries. Thanks to @eitsupi for the fix! (#118)
aarch64-unknown-linux-musl
prebuilt binary now available (#119)
- Fixed
cargo install mdbook-admonish
failing due to an internal dependency mismatch withmdbook
(#115)
- Only restyle
summary
elements generated bymdbook-admonish
. Thanks to @ImUrX for the report and fix! (#112)
- MSRV (minimum supported rust version) is now 1.66.0 for mdbook v0.4.32 (#109)
- Support
mdbook test
running doctests inside admonish blocks. Opt-in to this by settingrenderer.test.action_mode = "strip"
(#109) - Log a warning when an invalid admonish block is encountered (#109)
- Document all
book.toml
configuration options in the reference, some of which were previously undocumened (#109)
- Styles version updated to
2.0.1
. Runmdbook-admonish install
to update. - MSRV (minimum supported rust version) is now 1.64.0 for clap v4 (#79)
- More verbose error messages for invalid TOML configurations (#79)
- User can set book-wide default for title and collapsible properties (#84), thanks to @ShaunSHamilton
- Custom installation and CSS directories are now normalized (#49)
- Fix title bars with no text rendering badly (#83), thanks to @ShaunSHamilton
- Better error message display on crash (#48)
- Better support for commonmark code fence syntax (#88, #89)
- MSRV (minimum supported rust version) is now 1.60.0 for clap v4
- Required styles version is now
^2.0.0
(release1.7.0
). Runmdbook-admonish install
to update.
- Support key/value configuration (#24, thanks @gggto and @schungx for design input)
- Support collapsible admonition bodies (#26, thanks @gggto for the suggestion and implementation!)
- Make anchor links hoverable (#27)
- Better handling for misconfigured admonitions (#25)
- Nicer in-book error messages
- Option to fail the build instead
Please note: If updating from an older version, this release requires mdboook-admonish install
to be rerun after installation.
This behaviour is documented in the readme here, and may appear in any future minor version release.
- Required styles version is now
^1.0.0
(release1.6.0
). Runmdbook-admonish install
to update.
- Enforce updating installed styles when required for new features (#19
- Each admonition has a unique id. Click the header bar to navigate to the anchor link (#19, thanks @schungx for the suggestion)
- Admonitions now have an autogenerated
id
, to support anchor links (#16, thanks @schungx for the suggestion)
- Bumped locked dependency versions (mdbook v0.4.18)
- Support building and releasing binary artefacts.
- Additional classnames can be specified using
directive.classname
syntax - Support removing the title bar entirely
- Removed superfluous empty
<p>
tags in output
- Fixed compilation failure with no default features
- MSRV (minimum supported rust version) documented as 1.58.0
- Fixed incorrect admonition title/panic when terminating with non-ascii characters
- Updated readme to note double-JSON string escapes
- Flattened indentation of generated HTML, otherwise it's styled as a markdown code block
- Fixed edge cases where the info string changes length when parsed, causing title/body to be incorrectly split
Note: This release has been yanked.
It unintentionally introduced a serious parsing bug.
- Add additional examples and images in readme
- Allow markdown styling in title content
- Fix HTML being stripping from body content
- Support custom title text
- CSS rules for the builtin mdbook themes, to adjust card background color
- Crate metadata and README wording
admonish <admonition type>
support for code fences- Admonition type support is parity with mkdocs as of release