Is it possible to add a link to header tag as what hexo-renderer-marked did?
leonfancy opened this issue · 2 comments
Is it possible to add a link to each header tag as what hexo-renderer-marked did here: https://github.com/hexojs/hexo-renderer-marked/blob/master/lib/renderer.js#L36
It is possible, but it is not what this plugin does. This plugin is only to bridge hexo and pandoc.
What you desire can be achieved by writing customized Pandoc filter. Please consult Pandoc's documentation on filters.
As an example, a project of myself has a pandoc filter as part of it, written in python (pandocFilter.py
). This documentation section shows how to configure hexo to tell this plugin, which in turn tells pandoc to use that filter script.
Feel free to contact via my email listed on this website with further questions regarding pandoc filters. But as far as this project concerns, this issue is closed.
I have written an npm package to make this easier: https://github.com/seekstar/hexo-pandoc-header-anchor/