Expand description
§mdbook-termlink
An mdBook preprocessor that automatically links every glossary term throughout the book.
§Quick start
Add to your book.toml:
[preprocessor.termlink]
glossary-path = "reference/glossary.md"
display-mode = "link" # or "tooltip", or "both"Write the glossary as a Markdown definition list:
API (Application Programming Interface)
: A set of protocols for building software.
REST
: Representational State Transfer.Build the book with mdbook build. Every chapter will have its terms
linked into the glossary.
§Library entry points
The public API is intentionally narrow:
TermlinkPreprocessor— thePreprocessortrait implementation.Config— parsedbook.tomlsettings, includingDisplayMode.TermlinkError— the typed error returned by every fallible operation.
Structs§
- Config
- Configuration for the termlink preprocessor.
- Termlink
Preprocessor - mdBook preprocessor that auto-links glossary terms throughout documentation.
Enums§
- Display
Mode - Output shape chosen for every linked glossary occurrence.
- Termlink
Error - Every way the termlink preprocessor can fail.