Add back heading anchors via markdown-it-anchors plugin
This commit is contained in:
parent
2bf11e6604
commit
d2bd13da46
3 changed files with 10 additions and 0 deletions
|
@ -52,6 +52,14 @@ var markdownit = window.markdownit({
|
|||
|
||||
return ''; // use external default escaping
|
||||
}
|
||||
}).use(markdownItAnchor, {
|
||||
level: 1,
|
||||
// slugify: string => string,
|
||||
permalink: false,
|
||||
// renderPermalink: (slug, opts, state, permalink) => {},
|
||||
permalinkClass: 'header-anchor',
|
||||
permalinkSymbol: '¶',
|
||||
permalinkBefore: false
|
||||
});
|
||||
|
||||
// Markdown Renderer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue