Skip to content

Commit

Permalink
Merge pull request #97 from otegami/fix-deprecated-warning-about-perm…
Browse files Browse the repository at this point in the history
…alink

Remove a deprecated warning about markdown-it-anchor permalink option
  • Loading branch information
akira888 authored Oct 15, 2024
2 parents c0839a5 + c659366 commit 354c259
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ var md = require('markdown-it')({
module.exports = function(eleventyConfig) {
md.use(markdownItAnchor, { // add anchors to headings
level: '2',
permalink: 'true',
permalinkClass: 'anchor',
permalinkSymbol: '﹟',
permalinkBefore: 'true'
permalink: markdownItAnchor.permalink.ariaHidden({
class: 'anchor',
symbol: '#',
placement: 'before'
}),
});
md.use(markdownItToc, { // make a TOC with ${toc}
level: '2',
Expand Down

0 comments on commit 354c259

Please sign in to comment.