-
Hey, in many of my texts I am using the singular and plural of specific terms. For example Is it possible to allow both, algorithm and algorithms to map to the same glossary element? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
You should be able to provide multiple entries for a glossary definition. For example, see the Jupyter Book glossary. Entries for MyST
MyST Markdown
MySTs
My definition. One awkward thing about this is you'll have multiple terms listed even though some might just be the plural version of another. Use CSS to hide subsequent terms. The following example defines a CSS rule that will hide any term that comes immediately after a previous term. <style>
/* Do not display any glossary terms that are siblings of the first term */
dl.glossary dt + dt {
display: none;
}
</style>
```{glossary}
Term
Terms
Test text.
``` That should result in: Structure your markdown to minimize the issue:
An example of each:
becomes: In my opinion the first is a little bit weird since the |
Beta Was this translation helpful? Give feedback.
You should be able to provide multiple entries for a glossary definition. For example, see the Jupyter Book glossary. Entries for
MyST
andMyST Markdown
. You can do this by putting the two terms on top of one another, e.g.:One awkward thing about this is you'll have multiple terms listed even though some might just be the plural version of another.
Here are a few ways to get around the issue of having multiple terms just because you're using a plural:
Use CSS to hide subsequent terms.
The following example defines a CSS rule that will hide any term that comes immediately after a previous term.