xugaoyi / vuepress-theme-vdoing

🚀一款简洁高效的VuePress知识管理&博客(blog)主题
https://doc.xugaoyi.com
MIT License
4.49k stars 1.15k forks source link

[提问]: 新版的vdoing怎样才能增加Markdown的数学公式的功能? #633

Closed Roger0x0000 closed 1 year ago

Roger0x0000 commented 2 years ago

问题描述

新版的vdoing怎样才能增加Markdown的数学公式的功能?

重现步骤(可选)

  1. 之前的vdoing版本按照这个链接的方法可以安装markdown-it-texmath;
  2. 新版的安装报错,需要怎么解决?

tip Apply theme vuepress-theme-vdoing ... tip Apply plugin container (i.e. "vuepress-plugin-container") ... tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ... tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ... tip Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ... tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ... tip Apply plugin sitemap (i.e. "vuepress-plugin-sitemap") ... tip Apply plugin baidu-autopush (i.e. "vuepress-plugin-baidu-autopush") ... tip Apply plugin baidu-tongji (i.e. "vuepress-plugin-baidu-tongji") ... tip Apply plugin thirdparty-search (i.e. "vuepress-plugin-thirdparty-search") ... tip Apply plugin one-click-copy (i.e. "vuepress-plugin-one-click-copy") ... tip Apply plugin demo-block (i.e. "vuepress-plugin-demo-block") ... tip Apply plugin zooming (i.e. "vuepress-plugin-zooming") ... tip Apply plugin comment (i.e. "vuepress-plugin-comment") ... tip Apply plugin @vuepress/last-updated (i.e. "@vuepress/plugin-last-updated") ... Error: Dynamic require of "markdown-it-texmath" is not supported at file:///E:/Blog_2022/vuepress-theme-vdoing/docs/.vuepress/config.bundled_1664767528693.mjs:6:9 at extendMarkdown (file:///E:/Blog_2022/vuepress-theme-vdoing/docs/.vuepress/config.bundled_1664767528693.mjs:299:14) at afterInstantiate (E:\Blog_2022\vuepress-theme-vdoing\node_modules\@vuepress\core\lib\node\createMarkdown.js:23:23) at module.exports (E:\Blog_2022\vuepress-theme-vdoing\node_modules\@vuepress\markdown\index.js:125:23) at module.exports (E:\Blog_2022\vuepress-theme-vdoing\node_modules\@vuepress\core\lib\node\createMarkdown.js:27:10) at App.process (E:\Blog_2022\vuepress-theme-vdoing\node_modules\@vuepress\core\lib\node\App.js:113:21) at async dev (E:\Blog_2022\vuepress-theme-vdoing\node_modules\@vuepress\core\lib\index.js:17:3)

重现链接(可选)

问题截图(可选)

依赖版本(可选)

补充说明(可选)

xugaoyi commented 2 years ago

require('markdown-it-texmath') 是js版本config配置文件的导入方式,如果你使用的是ts版本的配置文件,请在文件头部用import导入,然后在相应地方使用该模块

---原始邮件--- 发件人: @.> 发送时间: 2022年10月3日(周一) 中午11:25 收件人: @.>; 抄送: @.***>; 主题: [xugaoyi/vuepress-theme-vdoing] [提问]: 新版的vdoing怎样才能增加Markdown的数学公式的功能? (Issue #633)

问题描述

新版的vdoing怎样才能增加Markdown的数学公式的功能?

重现步骤(可选)

之前的vdoing版本按照这个链接的方法可以安装markdown-it-texmath;

新版的安装报错,需要怎么解决?

tip Apply theme vuepress-theme-vdoing ... tip Apply plugin container (i.e. "vuepress-plugin-container") ... tip Apply plugin @vuepress/register-components (i.e. @./plugin-register-components") ... tip Apply plugin @vuepress/active-header-links (i.e. @./plugin-active-header-links") ... tip Apply plugin @vuepress/search (i.e. @./plugin-search") ... tip Apply plugin @vuepress/nprogress (i.e. @./plugin-nprogress") ... tip Apply plugin sitemap (i.e. "vuepress-plugin-sitemap") ... tip Apply plugin baidu-autopush (i.e. "vuepress-plugin-baidu-autopush") ... tip Apply plugin baidu-tongji (i.e. "vuepress-plugin-baidu-tongji") ... tip Apply plugin thirdparty-search (i.e. "vuepress-plugin-thirdparty-search") ... tip Apply plugin one-click-copy (i.e. "vuepress-plugin-one-click-copy") ... tip Apply plugin demo-block (i.e. "vuepress-plugin-demo-block") ... tip Apply plugin zooming (i.e. "vuepress-plugin-zooming") ... tip Apply plugin comment (i.e. "vuepress-plugin-comment") ... tip Apply plugin @vuepress/last-updated (i.e. @./plugin-last-updated") ... Error: Dynamic require of "markdown-it-texmath" is not supported at file:///E:/Blog_2022/vuepress-theme-vdoing/docs/.vuepress/config.bundled_1664767528693.mjs:6:9 at extendMarkdown (file:///E:/Blog_2022/vuepress-theme-vdoing/docs/.vuepress/config.bundled_1664767528693.mjs:299:14) at afterInstantiate @.\core\lib\node\createMarkdown.js:23:23) at module.exports @.\markdown\index.js:125:23) at module.exports @.\core\lib\node\createMarkdown.js:27:10) at App.process @.\core\lib\node\App.js:113:21) at async dev @.\core\lib\index.js:17:3)

重现链接(可选)

问题截图(可选)

依赖版本(可选)

node.js:

@vuepress:

vuepress-theme-vdoing:

补充说明(可选)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>