Skip to content

Commit

Permalink
fix: prevent headerids deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed May 10, 2023
1 parent de51058 commit 127940f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ let slugger;

export function gfmHeadingId({ prefix = '' } = {}) {
return {
headerIds: false, // prevent deprecation warning; remove this once headerIds option is removed
hooks: {
preprocess(src) {
slugger = new GithubSlugger();
Expand Down

0 comments on commit 127940f

Please sign in to comment.