next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.35k stars 417 forks source link

Inject annotations #802

Open japinli opened 1 month ago

japinli commented 1 month ago

Issue Checklist

Expected behavior

Add little markers in a document and expand a tooltip containing arbitrary Markdown on click or keyboard focus.

Actual behavior

This feature is implemented by Material for MkDocs, please see here. image

Steps to reproduce the behavior

https://squidfunk.github.io/mkdocs-material/

Other Information

No response

welcome[bot] commented 1 month ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

stevenjoezhang commented 1 month ago

If there is a need to extend markdown syntax to implement this feature, it has to deep integrate with Hexo. Hexo's markdown rendering plugins include several options like marked, pandoc, and markdown-it. Support for the relevant syntax in the markdown renderer is necessary before the theme can further support the styling.

japinli commented 1 month ago

Thanks for your response! Should I submit a feature request on Hexo first?