caukub / mdbook-hints

mdBook preprocessor to add hover hints (tooltips) to your book
MIT License
3 stars 0 forks source link

Auto-generate glossary page? #1

Open popematt opened 2 months ago

popematt commented 2 months ago

I'm interested in having tooltips, but also having a standalone glossary page that people can use as a reference. I'd love a feature that creates/populates a glossary.md file (such as this one) based on all of the entries in the hints.md file.

Would you be open to receiving a PR for a feature like that, or would you consider it outside the scope of this crate?

popematt commented 2 months ago

Actually, I might be approaching the problem the wrong way here. I might be able to create a glossary and define the hints in terms of the glossary using {{#include glossary.md:some_anchor}}.

caukub commented 1 month ago

Sorry for the late response.

I wanted to implement this myself first but then decided it's not worth the energy. If someone implements this, I'm absolutely open and will be glad to accept the PR 😊. Ideally, there should be an option to make the glossary content different than the hint.