cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

[Docs]请问一下,Browser模式下如何引入mermaid和echarts库

Open q2316367743 opened this issue 1 year ago • 3 comments

Prerequisites

  • [ ] There isn't an existing issue with the same question or request to avoid duplicates.

Issue Type

Question

Description of the Problem or Idea

请问一下,Browser模式下如何引入mermaid和echarts库 就是纯js环境,不使用npm

Further Information

No response

Contributing

No, I don't plan to at this time.

q2316367743 avatar Jun 24 '24 13:06 q2316367743

直接引入就好了

<!--mermaid-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js"></script>
<!--echarts-->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.js"></script>

参考: Cherry Muse

AnkioTomas avatar Jun 24 '24 13:06 AnkioTomas

直接引入就好了

<!--mermaid-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js"></script>
<!--echarts-->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.js"></script>

参考: Cherry Muse

好的,我试试

q2316367743 avatar Jun 24 '24 13:06 q2316367743

还可以看这篇文档哈:https://github.com/Tencent/cherry-markdown/wiki/%E6%9E%84%E5%BB%BA%E4%BA%A7%E7%89%A9%E4%BB%8B%E7%BB%8D

sunsonliu avatar Jun 25 '24 04:06 sunsonliu