Linking to Glossary Terms¶
Basic Usage¶
To link to a glossary term, use the following syntax:
This creates a link to the term's definition in your documentation.
Example
Output: - See the my_term1 for definition of term 1 - See the my term 2 for definition of term 2
Case Sensitivity¶
Available since version 1.7.0
By default, term definitions and references are case-sensitive. You must use the exact spelling in your links as used in the term definition.
To enable case-insensitive matching, set ignore_case
to true
:
Example
With ignore_case: true
, all these links point to the same term:
Custom Link Text¶
By default, the term itself is used as the link text. You can override this
using the |
modifier:
Note
When using custom link text in tables, escape the |
character:
Handling Plurals¶
Available since version 1.7.0
The plugin can automatically match plural forms to their singular definitions. This is useful when you want to use the plural form in your text while linking to the singular definition.
Example
Definition:
Usage:
Supported Languages¶
Plural handling is available for: - English (en) - Spanish (es) - French (fr) - German (de)
Enable plural handling in your configuration:
Plural Lookup Methods¶
Using the inflect Library¶
The inflect library provides robust plural-to-singular conversion for English terms:
Using Built-in Rules¶
The plugin includes basic plural rules for supported languages:
Using Markdown Links¶
Available since version 1.6.0
When markdown_links is enabled, the plugin also processes standard Markdown links:
This is especially useful for: - Terms containing Unicode characters - Terms with emojis - Integration with other Markdown tools
Tooltips¶
Control whether hovering over links shows definition previews using the tooltip option:
Options:
- none
: No tooltips (default)
- short
: Show first line of definition
- full
: Show complete definition
Example
With tooltip: full
:
Configuration¶
- tooltip
- Configure tooltips for reference links. Default:
none
- plurals
- Configure plural handling. Options:
none
(default),en
,es
,fr
,de
,inflect
- ignore_case
- Enable case-insensitive term matching. Default:
false
- markdown_links
- Enable processing of standard Markdown links. Default:
false