See Full Changelog: v0.1.4...v2.0.0
Highlights
-
mdBook 0.5.xsupport: updated to themdbook-preprocessor0.5 API (mdBook 0.5 split the preprocessor interface out of themdbookcrate). -
Plug-and-play contributors styling: contributors no longer inject raw
<style>into chapter HTML. Styling is provided via an automatically managed theme CSS asset. -
Safer contributors token rendering:
{% contributors %}is now treated as a block token to avoid accidental expansion inside documentation examples.
Breaking changes
-
Requires
mdBook-0.5.x(mdBook-0.4users should remain onmdbook-gitinfo-v1.2.x). -
Contributors token behaviour is stricter:
-
{% contributors %}is only expanded when it appears on its own line. -
Tokens inside fenced code blocks, indented code blocks, inline code, tables, or general prose are not expanded.
-
Contributors styling and theme injection
-
When
contributors = true:-
The preprocessor creates
theme/gitinfo.cssat the book root (if missing). -
The preprocessor adds
theme/gitinfo.csstobook.tomlunder:output.html.additional-css
-