hagenburger / pimd

PIMD – Processing Instructions for Markdown
https://hagenburger.github.io/pimd-docs/
MIT License
20 stars 5 forks source link

Add IDs and anchors to headings #84

Open hagenburger opened 5 years ago

hagenburger commented 5 years ago

Write a plugin that adds IDs and anchors to headings.

Example

Input:

# Lorem ipsum

Output:

<h1><a href="#lorem-ipsum"><span id="lorem-ipsum"></span></a>Lorem ipsum</h1>

Background