Skip to content

This project provides a Lua filter for Hexo's Pandoc renderer to add header links to your files.

Notifications You must be signed in to change notification settings

moon-jam/hexo-renderer-pandoc_header-link-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

hexo-renderer-pandoc_header-link-filter

This project provides a Lua filter for Hexo's Pandoc renderer to add header links to your files to show the anchor icon.
image

Usage

  1. Download the header-link-filter.lua script from this repository and add it to your Hexo project. We recommend placing it in the ./source/_data directory for organization, but you can choose a location that suits your project structure.

  2. Update your _config.yml to include the Lua filter along with other Pandoc arguments. If you placed the header-link-filter.lua file in a different location, make sure to update the path accordingly:

pandoc:
    args:
        - "-f"
        - "markdown"
        - "-t"
        - "html"
        - "--mathjax"
        - '--lua-filter'
        - './source/_data/header-link-filter.lua'

Notes

This filter is an opt-in feature and is not hard-coded into the source code of the hexo-renderer-pandoc plugin. This allows for greater flexibility and customization based on individual project needs.

About

This project provides a Lua filter for Hexo's Pandoc renderer to add header links to your files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages