Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vuepress 2.0 编译不通过啊 #57

Closed
cloakscn opened this issue Jan 16, 2022 · 5 comments
Closed

vuepress 2.0 编译不通过啊 #57

cloakscn opened this issue Jan 16, 2022 · 5 comments

Comments

@cloakscn
Copy link

image
已经检查过了,确实是因为使用了mathjax3插件引起报错的

@cloakscn
Copy link
Author

可以通过yarn dev运行,但是yarn build报这个错了

@Dragon1573
Copy link

@cloakscn 你这个问题,我之前已经询问过 @tani 了,详情请看 #52

目前 VuePress v2.x 仍处于 Beta 状态,在其转入 Stable 状态彻底替代 v1.x 之前,@tani 都将不会考虑为 v2.x 提供技术支持。

最后需要提一下,尽管 @tani 学过一段时间的汉语,基本具备无障碍阅读我们对话的能力,但可能还有其他语言的用户会找到这里。使用英语会方便其他用户在 Issues / Pull Requests 中进行搜索,极大程度杜绝重复提问。因此请考虑使用纯英语或中英双语发言。


Deprecated #52. This issue can be closed.

@tani
Copy link
Owner

tani commented Jan 17, 2022

@Dragon1573 Thank you for answering this issue to him.

You (@Dragon1573 and @cloakscn ) might know, vuepress is in maintenance mode. It means that we may not able to use vuepress v2 anymore. So, I have no motivation to support vuepress v2 in the future. https://github.com/vuejs/vuepress#status

Vitepress is the successor of vuepress. It is still in alpha quality in v0.
I do not recommend using it in production but I can work to solve some problems for vitepress and cannot work to solve some problems for vuepress v2.

Cheers.

@tani tani closed this as completed Jan 17, 2022
@brc-dd
Copy link

brc-dd commented Jun 22, 2022

This works nice with VitePress (vuejs/vitepress#529 (comment)) without much config. 🙌

@FAKER-A
Copy link

FAKER-A commented Nov 2, 2022

vuepress2.0+ , You can configure it this way and it will work fine @cloakscn @Dragon1573

  // config.js
 const customElement = [
  "math",
  "annotation",
  "semantics",
  "mtext",
  "mn",
  "mo",
  "mi",
  "mspace",
  "mover",
  "munder",
  "munderover",
  "msup",
  "msub",
  "msubsup",
  "mfrac",
  "mroot",
  "msqrt",
  "mtable",
  "mtr",
  "mtd",
  "mlabeledtr",
  "mrow",
  "menclose",
  "mstyle",
  "mpadded",
  "mphantom",
  "mglyph",
  "mjx-container",
  "mjx-assistive-mml",
 ];
  extendsMarkdown: (md) => {
    md.use(require("markdown-it-mathjax3"));
    md.linkify.set({ fuzzyEmail: false });
  },

  bundlerConfig: {
    vuePluginOptions: {
      template: {
        compilerOptions: {
          isCustomElement: (tag) => customElement.includes(tag),
        },
      },
    },
  }, 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants