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

导出本地html时增加embed css的支持 #224

Open
timepp opened this issue May 13, 2021 · 1 comment
Open

导出本地html时增加embed css的支持 #224

timepp opened this issue May 13, 2021 · 1 comment

Comments

@timepp
Copy link

timepp commented May 13, 2021

目前我使用VSCODE的markdown enhanced preview插件导出本地HTML的时候, 发现数学公式引用了一个本地css文件:

<script type="text/javascript" async src="file:///c:\Users\user\.vscode\extensions\shd101wyy.markdown-preview-enhanced-0.5.18\node_modules\@shd101wyy\mume\dependencies\mathjax\MathJax.js" charset="UTF-8"></script>

这样我分享单个HTML给别人的话, 数学公式部分就乱掉了.

希望增加一个embed_css选项见下
html: embed_local_images: true embed_svg: true embed_css: true
效果是把导出html是本来插入的链接替换为<style>文件内容</style>

@timepp
Copy link
Author

timepp commented May 13, 2021

补充: 还应该有一个embed_js

因为我发现使用katex时是链接的css, 使用mathjax时是链接的JS

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

1 participant