From 3b571fc9b32ea4057a5d8c780f53d12f1ae51ff8 Mon Sep 17 00:00:00 2001 From: Daniel Bartholomae Date: Sat, 3 Sep 2022 20:33:50 +0200 Subject: [PATCH 1/3] Fix typo in documentation --- src/mermaidAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mermaidAPI.ts b/src/mermaidAPI.ts index 303a78680..70e3b679b 100644 --- a/src/mermaidAPI.ts +++ b/src/mermaidAPI.ts @@ -8,7 +8,7 @@ * 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. * - * 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. * * In addition to the render function, a number of behavioral configuration options are available. From b79eaae0020e15336edbac22d9006321e07d088d Mon Sep 17 00:00:00 2001 From: Daniel Bartholomae Date: Sat, 3 Sep 2022 20:36:14 +0200 Subject: [PATCH 2/3] Fix typo --- src/mermaidAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mermaidAPI.ts b/src/mermaidAPI.ts index 70e3b679b..f44f6743c 100644 --- a/src/mermaidAPI.ts +++ b/src/mermaidAPI.ts @@ -171,7 +171,7 @@ const render = function ( .append('g'); } else { // 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 const existingSvg = document.getElementById(id); if (existingSvg) { From 27baa24c827448b08d1da96cd6ddb8a4f022c4f2 Mon Sep 17 00:00:00 2001 From: Daniel Bartholomae Date: Sat, 3 Sep 2022 22:54:43 +0200 Subject: [PATCH 3/3] Build documentation --- docs/Setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Setup.md b/docs/Setup.md index b7ee5e833..bc02f194e 100644 --- a/docs/Setup.md +++ b/docs/Setup.md @@ -11,7 +11,7 @@ using the default integration provided by mermaid.js. 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. -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. In addition to the render function, a number of behavioral configuration options are available.