mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-15 20:20:10 +02:00
Merge branch 'develop' into sidv/docs
* develop: build: run `build:prod` on `yarn prepare` Build documentation Fix typo Fix typo in documentation added mermerd to integrations documentation
This commit is contained in:
@@ -13,7 +13,7 @@ using the default integration provided by mermaid.js.
|
|||||||
The core of this api is the [**render**][2] function which, given a graph
|
The core of this api is the [**render**][2] function which, given a graph
|
||||||
definition as text, renders the graph/diagram and returns an svg element for the graph.
|
definition as text, renders the graph/diagram and returns an svg element for the graph.
|
||||||
|
|
||||||
It is is then up to the user of the API to make use of the svg, either insert it somewhere in the
|
It is then up to the user of the API to make use of the svg, either insert it somewhere in the
|
||||||
page or do something completely different.
|
page or do something completely different.
|
||||||
|
|
||||||
In addition to the render function, a number of behavioral configuration options are available.
|
In addition to the render function, a number of behavioral configuration options are available.
|
||||||
|
@@ -33,6 +33,7 @@ They also serve as proof of concept, for the variety of things that can be built
|
|||||||
- [redmine-mermaid](https://github.com/styz/redmine_mermaid)
|
- [redmine-mermaid](https://github.com/styz/redmine_mermaid)
|
||||||
- [markdown-for-mermaid-plugin](https://github.com/jamieh-mongolian/markdown-for-mermaid-plugin)
|
- [markdown-for-mermaid-plugin](https://github.com/jamieh-mongolian/markdown-for-mermaid-plugin)
|
||||||
- [Jetsbrain IDE eg Pycharm](https://www.jetbrains.com/go/guide/tips/mermaid-js-support-in-markdown/)
|
- [Jetsbrain IDE eg Pycharm](https://www.jetbrains.com/go/guide/tips/mermaid-js-support-in-markdown/)
|
||||||
|
- [mermerd](https://github.com/KarnerTh/mermerd)
|
||||||
|
|
||||||
## CRM/ERP/Similar
|
## CRM/ERP/Similar
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
"test": "yarn lint && jest src/.*",
|
"test": "yarn lint && jest src/.*",
|
||||||
"test:watch": "jest --watch src",
|
"test:watch": "jest --watch src",
|
||||||
"prepublishOnly": "yarn build && yarn test",
|
"prepublishOnly": "yarn build && yarn test",
|
||||||
"prepare": "husky install",
|
"prepare": "concurrently \"husky install\" \"yarn build:prod\"",
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "lint-staged"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* The core of this api is the [**render**](Setup.md?id=render) function which, given a graph
|
* The core of this api is the [**render**](Setup.md?id=render) function which, given a graph
|
||||||
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
||||||
*
|
*
|
||||||
* It is is then up to the user of the API to make use of the svg, either insert it somewhere in the
|
* It is then up to the user of the API to make use of the svg, either insert it somewhere in the
|
||||||
* page or do something completely different.
|
* page or do something completely different.
|
||||||
*
|
*
|
||||||
* In addition to the render function, a number of behavioral configuration options are available.
|
* In addition to the render function, a number of behavioral configuration options are available.
|
||||||
@@ -171,7 +171,7 @@ const render = function (
|
|||||||
.append('g');
|
.append('g');
|
||||||
} else {
|
} else {
|
||||||
// No container was provided
|
// No container was provided
|
||||||
// If there is an existsing element with the id, we remove it
|
// If there is an existing element with the id, we remove it
|
||||||
// this likely a previously rendered diagram
|
// this likely a previously rendered diagram
|
||||||
const existingSvg = document.getElementById(id);
|
const existingSvg = document.getElementById(id);
|
||||||
if (existingSvg) {
|
if (existingSvg) {
|
||||||
|
Reference in New Issue
Block a user