docs: Update mermaid.init remove date

This commit is contained in:
Sidharth Vinod 2024-06-27 18:05:40 +05:30
parent a2cc86a414
commit c1052bd3c5
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
3 changed files with 3 additions and 10 deletions

View File

@ -193,7 +193,7 @@ await mermaid.run({
### Calling `mermaid.init` - Deprecated
> **Warning**
> mermaid.init is deprecated in v10 and will be removed in v11. Please use mermaid.run instead.
> mermaid.init is deprecated in v10 and will be removed in a future release. Please use mermaid.run instead.
By default, `mermaid.init` will be called when the document is ready, finding all elements with
`class="mermaid"`. If you are adding content after mermaid is loaded, or otherwise need
@ -217,9 +217,6 @@ Or with no config object, and a jQuery selection:
mermaid.init(undefined, $('#someId .yetAnotherClass'));
```
> **Warning**
> This type of integration is deprecated. Instead the preferred way of handling more complex integration is to use the mermaidAPI instead.
## Usage with webpack
mermaid fully supports webpack. Here is a [working demo](https://github.com/mermaidjs/mermaid-webpack-demo).

View File

@ -188,7 +188,7 @@ await mermaid.run({
### Calling `mermaid.init` - Deprecated
```warning
mermaid.init is deprecated in v10 and will be removed in v11. Please use mermaid.run instead.
mermaid.init is deprecated in v10 and will be removed in a future release. Please use mermaid.run instead.
```
By default, `mermaid.init` will be called when the document is ready, finding all elements with
@ -213,10 +213,6 @@ Or with no config object, and a jQuery selection:
mermaid.init(undefined, $('#someId .yetAnotherClass'));
```
```warning
This type of integration is deprecated. Instead the preferred way of handling more complex integration is to use the mermaidAPI instead.
```
## Usage with webpack
mermaid fully supports webpack. Here is a [working demo](https://github.com/mermaidjs/mermaid-webpack-demo).

View File

@ -1,5 +1,5 @@
/**
* This file contains functions that are used internally by mermaid
* This file contains functions that are used internally by mermaid
* and is not intended to be used by the end user.
*/
// @ts-ignore TODO: Investigate D3 issue