-
We are using snippets to auto-append a glossary file. The tooltips are case-sensitive, so we capitalize the words in the glossary file, and then if we want the word to have a tooltip, we capitalize it. So for instance in our
And then in the docs, if we want to define a word, we would capitalize it:
This occasionally causes us to get a tooltip where we didn't really need one, like at the beginning of a sentence, but that's not a big deal. But in a totally different section of the docs, I have to document a part of a UI that has a table entitled 'Product Group,' but has nothing to do with those definitions of 'Product' and 'Group'. I need to talk about "the Product Group table," and I can't just not capitalize it because it's the title of the table, but obviously it's getting those two tooltips that are not just unwanted, but inaccurate in this context. Anyone know a clever way to avoid those individual words getting wrapped in |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I think the glossary was originally intended to be for abbreviations and acronyms (i.e. things that wouldn't normally be confused with other words). |
Beta Was this translation helpful? Give feedback.
-
There's currently no way to do so, no. The limitations lie not within Material for MkDocs, but within the Abbreviations Markdown extension which will automatically decorate matching words. The change would somehow need to be made in the way the Markdown parser identifies those words, so I recommend taking this upstream to Python Markdown. We're evaluating adding better glossary support to Material for MkDocs in the coming months. The idea is to use a combination of instant previews (incubating) and auto-linking, but we first need to refactor instant loading addressing #3797 and #5023. I'm on it. |
Beta Was this translation helpful? Give feedback.
-
Here is a related question: Is there a way to disable the Abbreviations for a selected page? My team would like to have both the tooltip style glossary, as currently documented in the Tooltips section., as well as a dedicated page listing terms and definitions. To do this, I created
With this method, the tooltips appear on every entry in |
Beta Was this translation helpful? Give feedback.
There's currently no way to do so, no. The limitations lie not within Material for MkDocs, but within the Abbreviations Markdown extension which will automatically decorate matching words. The change would somehow need to be made in the way the Markdown parser identifies those words, so I recommend taking this upstream to Python Markdown.
We're evaluating adding better glossary support to Material for MkDocs in the coming months. The idea is to use a combination of instant previews (incubating) and auto-linking, but we first need to refactor instant loading addressing #3797 and #5023. I'm on it.