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. diff --git a/src/mermaidAPI.ts b/src/mermaidAPI.ts index 303a78680..f44f6743c 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. @@ -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) {