Add back heading anchors via markdown-it-anchors plugin

This commit is contained in:
Chase Sterling 2016-09-04 16:03:16 -04:00
parent 2bf11e6604
commit d2bd13da46
3 changed files with 10 additions and 0 deletions

View file

@ -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