tytto 最近的时间轴更新
tytto

tytto

V2EX 第 290299 号会员,加入于 2018-02-07 11:35:22 +08:00
tytto 最近回复了
2018-02-07 15:41:53 +08:00
回复了 yech1990 创建的主题 问与答 markdown 中如何完美的嵌入 mermaid
@vagranth 谢谢分享!这两天正在研究这个,照以上步骤做了但是没有成功。

我把 hexo-tag-mermaid 文件夹加到了 next 的 source/lib 下,然后在编辑了 next 的 layout/_partials/head/custom-head.swig:

{#
<link href="{{ url_for(theme.vendors._internal + '/mermaid/mermaid.css') }}" rel="stylesheet">
<script src="{{ url_for(theme.vendors._internal + '/mermaid/mermaid.min.js') }}"></script>
<script type="text/javascript">mermaid.initialize({startOnLoad:true});</script>
#}

在 md 里面直接写{% mermaid %}代码{% endmermaid %}然后 hexo g 的时候说有错误。

不知道是我哪一步出错了呢?本人太小白啦,麻烦指导一下。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2501 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 09:02 · PVG 17:02 · LAX 02:02 · JFK 05:02
Developed with CodeLauncher
♥ Do have faith in what you're doing.