请问vuepress2现在支持 katex 吗 #908
-
| module.exports = {
  //
  markdown: {
    extendMarkdown : md => {
      md.use(require("markdown-it-katex"));
    }
  },
}如此添加,好像并不会生效欸 | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Mister-Hope
          
      
      
        May 26, 2022 
      
    
    Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            -
| 首先请阅读我们的迁移指南确保你使用了正确的api。 你也可以考虑使用 vuepress-plugin-md-enhance。https://vuepress-theme-hope.github.io/v2/md-enhance/zh/guide/tex.html#配置 如果你使用默认的katax配置,注意你需要将mathml添加至customElement | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        Mister-Hope
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
首先请阅读我们的迁移指南确保你使用了正确的api。
你也可以考虑使用 vuepress-plugin-md-enhance。https://vuepress-theme-hope.github.io/v2/md-enhance/zh/guide/tex.html#配置
如果你使用默认的katax配置,注意你需要将mathml添加至customElement