-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snippets: auto_prepend #2143
Comments
When you say "glossaries" what glossary feature are you using that requires prepend. Can you provide a clear, real-world example of how you implement glossaries? |
I have an abbreviations.md file to hold all the site wide abbreviations and be included as a snippet, but sometimes an abbreviation on a page will have a different definition because of the subject matter. As an example CNO could be Chief of Naval Operations in the snippet, but a page could use it for Computer Network Operations. Having the abbreviations.md snippet added to the end of the page prevents the page from specifying its own definition for that acronym. |
Prepend is problematic as well as we may inject before YAML frontmatter and such. Maybe if you need to control auto append, maybe we can allow a placeholder to specify the insertion point for auto append. Though, until something like this was added, the mitigation would be to not use append if you need to have such control. |
For now I am adding the snippet line just after the frontmatter and will check for it when my coworkers create pages. |
It may even make sense not to include abbreviations with multiple meanings in the "auto" abbreviation file. Those that have multiple meanings may make more sense only being specified directly on the desired page to ensure proper context. |
Description
With glossaries, the current auto_append option does not let pages override abbreviation declarations because it is added to the end of the page.
Benefits
An option to automatically add the glossary at the beginning of the document would be more convenient for this use case.
Solution Idea
Add an auto_prepend option to mirror the current auto_append option.
The text was updated successfully, but these errors were encountered: