vuepress-reco / vuepress-theme-reco

🎨 This is the repo for vuepress-theme-reco 2.
https://vuepress-theme-reco.recoluan.com
MIT License
575 stars 183 forks source link

How to enable KaTex formula of the MarkDown #103

Closed krahets closed 2 years ago

krahets commented 2 years ago

In 1.x, KaTex formula can be enabled by

  markdown: {
    lineNumbers: true,
    extendMarkdown(md) {
      md.set({ html: true }),
        md.use(require("markdown-it-katex"))
    }
  }

But it seems not working on the 2.x anymore.