simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.08k stars 135 forks source link

custom id support?? #168

Closed wow-yes closed 1 year ago

wow-yes commented 2 years ago

Pandoc - Pandoc User’s Guide

the following headings will all be assigned the identifier foo:

# My heading {#foo}

## My heading ##    {#foo}

My other heading   {#foo}
---------------

(This syntax is compatible with PHP Markdown Extra.)

Will this plugin support this feature? Thanks.

For now, I use ###### as an alternative 。

simov commented 2 years ago

I think the underlying parsers that this extensions use may have a plugin for that. I will have to check.

simov commented 1 year ago

Markdown Viewer v5.2 got released with a new default compiler called markdown-it and an option called attr that addresses this issue https://github.com/simov/markdown-viewer#compiler-options