Skip to content

Commit

Permalink
Fix for issue #58 and new version of mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Jul 22, 2019
1 parent f1f9f2e commit ea832f2
Show file tree
Hide file tree
Showing 6 changed files with 3,257 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="UTF-8"><meta content="text/html; charset=utf-8" http-equiv="Content-Type"><title>Online FlowChart &amp; Diagrams Editor - Mermaid Live Editor</title><meta name="og:image" content="https://mermaidjs.github.io/images/header.png"><link rel="canonical" href="https://mermaidjs.github.io/mermaid-live-editor/"><meta name="description" content="Simplify documentation and avoid heavy tools. Open source Visio Alternative. Commonly used for explaining your code! Mermaid is a simple markdown-like script language for generating charts from text via javascript."><link rel="stylesheet" href="src.e5f1ad55.css"></head><body> <div id="root"></div> <script src="src.acf2a1bb.js" charset="UTF-8"></script> </body></html>
<!doctype html><html><head><meta charset="UTF-8"><meta content="text/html; charset=utf-8" http-equiv="Content-Type"><title>Online FlowChart &amp; Diagrams Editor - Mermaid Live Editor</title><meta name="og:image" content="https://mermaidjs.github.io/images/header.png"><link rel="canonical" href="https://mermaidjs.github.io/mermaid-live-editor/"><meta name="description" content="Simplify documentation and avoid heavy tools. Open source Visio Alternative. Commonly used for explaining your code! Mermaid is a simple markdown-like script language for generating charts from text via javascript."><link rel="stylesheet" href="src.e5f1ad55.css"></head><body> <div id="root"></div> <script src="src.6587cc90.js" charset="UTF-8"></script> </body></html>
3,243 changes: 3,243 additions & 0 deletions docs/src.6587cc90.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/src.6587cc90.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"he": "^1.2.0",
"js-base64": "^2.5.0",
"lodash": "^4.17.11",
"mermaid": "^8.2.2",
"mermaid": "^8.2.3",
"minify": "^4.1.1",
"moment": "^2.23.0",
"moment-mini": "^2.22.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Preview extends React.Component {

componentDidUpdate () {
this.container.removeAttribute('data-processed')
this.container.innerHTML = this.props.code
this.container.innerHTML = this.props.code.replace('onerror=','onerror&equals;')
this.initMermaid()
}
}
Expand Down
14 changes: 10 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,11 @@
lodash "^4.17.11"
to-fast-properties "^2.0.0"

"@braintree/sanitize-url@^3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-3.1.0.tgz#8ff71d51053cd5ee4981e5a501d80a536244f7fd"
integrity sha512-GcIY79elgB+azP74j8vqkiXz8xLFfIzbQJdlwOPisgbKT00tviJQuEghOXSMVxJ00HoYJbGswr4kcllUc4xCcg==

"@fortawesome/fontawesome-free-webfonts@^1.0.9":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free-webfonts/-/fontawesome-free-webfonts-1.0.9.tgz#72f2c10453422aba0d338fa6a9cb761b50ba24d5"
Expand Down Expand Up @@ -6981,11 +6986,12 @@ merge@^1.2.0:
resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.1.tgz#38bebf80c3220a8a487b6fcfb3941bb11720c145"
integrity sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==

mermaid@^8.2.2:
version "8.2.2"
resolved "https://registry.yarnpkg.com/mermaid/-/mermaid-8.2.2.tgz#f2ecfdf80c61ab3bf5a49d05777f4a768e878880"
integrity sha512-mhXX+pPkZ3BkzZIeIwXREV/4sZUq84PGpJMBPGRVpZE/GESsgw2d8plFzwr4lw62wCJ/atEGBRT1Jw95xhHN2g==
mermaid@^8.2.3:
version "8.2.3"
resolved "https://registry.yarnpkg.com/mermaid/-/mermaid-8.2.3.tgz#609bad45bedc3ee1a935161c11c3c22689cfecd9"
integrity sha512-G2p9BAAEeTtogPs4YXM8KyX+TsZULlgk0tGvmBPfBZ5j3YCPxgAxG9ZzleiYNItF7M1hGkE485BDLN8DbfR+/Q==
dependencies:
"@braintree/sanitize-url" "^3.1.0"
d3 "^5.7.0"
dagre-d3-renderer "^0.5.8"
dagre-layout "^0.8.8"
Expand Down

0 comments on commit ea832f2

Please sign in to comment.