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
Comments
可以通过yarn dev运行,但是yarn build报这个错了 |
@cloakscn 你这个问题,我之前已经询问过 @tani 了,详情请看 #52 。 目前 VuePress v2.x 仍处于 Beta 状态,在其转入 Stable 状态彻底替代 v1.x 之前,@tani 都将不会考虑为 v2.x 提供技术支持。 最后需要提一下,尽管 @tani 学过一段时间的汉语,基本具备无障碍阅读我们对话的能力,但可能还有其他语言的用户会找到这里。使用英语会方便其他用户在 Issues / Pull Requests 中进行搜索,极大程度杜绝重复提问。因此请考虑使用纯英语或中英双语发言。 Deprecated #52. This issue can be closed. |
@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. Cheers. |
This works nice with VitePress (vuejs/vitepress#529 (comment)) without much config. 🙌 |
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),
},
},
},
}, |
已经检查过了,确实是因为使用了mathjax3插件引起报错的
The text was updated successfully, but these errors were encountered: