Add glossary chapter

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 4 years ago
parent 39f892e7d0
commit ca893e8e9e
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -0,0 +1,8 @@
[SHORT]
long = "Long Form"
description = "The description of the entry"
[HTML]
long = "Hypertext Markup Language"
description = "The markup language of the web"

@ -0,0 +1,51 @@
# Glossary
You can use glossary entries in Snekdown to provide
a way of linking abbreviations to their longer form
and auto expand the first occurrence of an abbreviation.
Glossary entries can be defined in a separate TOML File.
Per default the `Glossary.toml` file gets imported.
```toml
# Glossary.toml
[SHORT]
long = "Long Form"
description = "The description of the entry"
# Example
[HTML]
long = "Hypertext Markup Language"
description = "The markup language of the web"
```
The defined entries can be used in the text by using the following syntax:
Short entry:
```
~SHORT
~HTML
```
~SHORT
~HTML
The first occurrence expands to the long form. When using it a second time it uses the shorter form:
~SHORT
~HTML
You can force Snekdown to use the long form for an entry by writing
```
~~SHORT
~~HTML
```
~~SHORT
~~HTML

@ -43,4 +43,8 @@
- - - - - -
<[chapters/bibliography.md] <[chapters/bibliography.md]
- - -
<[chapters/glossary.md]
Loading…
Cancel
Save