Skip to content

Ability to customize heading IDs #2050

Closed Answered by roll
roll asked this question in Q&A
Jun 25, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

The full config to have both configurable ids and clickable headings:

  markdown: {
    remarkPlugins: [remarkHeadingId],
    rehypePlugins: [
      rehypeHeadingIds,
      [
        rehypeAutolinkHeadings,
        {
          behavior: "wrap",
        },
      ],
    ],
  },

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@roll
Comment options

@roll
Comment options

@roll
Comment options

Answer selected by delucis
@HiDeoo
Comment options

@roll
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants