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

如何支持流程图 #137

Closed
mogocat opened this issue Mar 18, 2017 · 4 comments
Closed

如何支持流程图 #137

mogocat opened this issue Mar 18, 2017 · 4 comments

Comments

@mogocat
Copy link

mogocat commented Mar 18, 2017

如果需要在markdown文件里使用流程图,是否支持

@QingWei-Li
Copy link
Member

可以自己封装插件。
markdown 的 renderer 支持扩展,结合 flowchart.js 等库就可以用流程图了。

@mogocat
Copy link
Author

mogocat commented Mar 18, 2017

非常感谢,但是我折腾了很久完全摸不到门,我对这方面了解很少,可否提供一个example到项目中。

@baihe
Copy link

baihe commented Apr 6, 2017

仔细阅读 插件编写 相关内容。

简单的如:

<script>
// require jquery and js-sequence
window.$docsify = {
  plugins: [
    function (hook) {
      hook.doneEach(function (html) {
        $("code.lang-sequence").sequenceDiagram({theme: 'simple'});
      })
    }
  ]
}
</script>

@willin
Copy link

willin commented Jun 20, 2017

功能更强大的mermaid: https://blog.willin.wang/posts/2017/docsify-mermaid-plugin/

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

4 participants