From a72e7490c33f189a9b40cf09366272479cd7ee62 Mon Sep 17 00:00:00 2001 From: Li Yiming Date: Tue, 6 Nov 2018 17:27:24 +0800 Subject: [PATCH] docs: mermaid duplicated id, see #504 (#685) Please makes sure these boxes are checked before submitting your PR, thank you! * [x] Make sure you are merging your commits to `master` branch. * [x] Add some descriptions and refer relative issues for you PR. * [x] DO NOT include files inside `lib` directory. --- docs/markdown.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/markdown.md b/docs/markdown.md index d03d5ec4..c506e17c 100644 --- a/docs/markdown.md +++ b/docs/markdown.md @@ -36,6 +36,7 @@ window.$docsify = { // // +var num = 0; mermaid.initialize({ startOnLoad: false }); window.$docsify = { @@ -44,7 +45,7 @@ window.$docsify = { code: function(code, lang) { if (lang === "mermaid") { return ( - '
' + mermaid.render(lang, code) + "
" + '
' + mermaid.render('mermaid-svg-' + num++, code) + "
" ); } return this.origin.code.apply(this, arguments);