Skip to content
Discussion options

You must be logged in to vote

Please refer advanced configuration section here: https://vitepress.vuejs.org/guide/markdown.html#advanced-configuration

After installing and configuring markdown-it-footnote like this:

// .vitepress/config.js

import footnote from 'markdown-it-footnote'
import { defineConfig } from 'vitepress'

export default defineConfig({
  markdown: {
    config: (md) => {
      md.use(footnote)
    }
  }
})

You'll be able to use footnotes:

Here's a simple footnote,[^1] and here's a longer one.[^bignote]

[^1]: This is the first footnote.

[^bignote]: Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    `{ my code }`

    Add as many paragraphs as …

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@gureckis
Comment options

Answer selected by brc-dd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brc-dd
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
4 participants