-
Notifications
You must be signed in to change notification settings - Fork 95
Abbreviations are not updated after adding a new one #148
Copy link
Copy link
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
No response
Bug description
When using the abbreviations and the glossary plugins things work as expected if you add the terms in the glossary and then you modify an .md file to include those abbreviations. However, if you add the terms without modifying the file, the result is that the file will not render the abbreviations correctly.
It seems to be related to the .cache folder. If this is removed, then the glossary is correctly displayed again.
Related links
Reproduction
Steps to reproduce
- Start from a fresh project.
- Modify the
index.mdfile to have this content:
The HTML specification is maintained by the W3C.
- Save the file.
- Add necessary plugins as described in tooltips and glossary in your
zensical.tomlfile:
[project.markdown_extensions.abbr]
[project.markdown_extensions.attr_list]
[project.markdown_extensions.pymdownx.snippets]
auto_append = ["includes/abbreviations.md"]
- Create an empty
includes/abbreviations.mdfile (place it outsidedocs, i.e., root of your project). - Execute
zensical serve. This will create a.cachefolder in the root of your project. - Add the following content to the
abbreviations.mdfile:
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
- Visit the page.
At this point, the page should not display the abbreviations.
- Modify the content of the
index.mdfile (e.g., add an space). - Save the file.
- Visit the page.
At this point the page should be displaying the abbreviations correctly.
Browser
Chrome
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open