mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
14
README.md
14
README.md
@@ -10,16 +10,16 @@
|
|||||||
In version 8.2 a security improvement was introduced. A securityLevel configuration was introduced which sets the level of trust to be used on the parsed diagrams.
|
In version 8.2 a security improvement was introduced. A securityLevel configuration was introduced which sets the level of trust to be used on the parsed diagrams.
|
||||||
|
|
||||||
* **`strict`**: (default) tags in text are encoded, click functionality is disabled
|
* **`strict`**: (default) tags in text are encoded, click functionality is disabled
|
||||||
* `loose`: tags in text are allowed, click functionality is enabledClosed issues:
|
* `loose`: tags in text are allowed, click functionality is enabled
|
||||||
|
|
||||||
⚠️ **Note** : This changes the default behaviour of mermaid so that after upgrade to 8.2, if the securityLevel is not configured, tags in flowcharts are encoded as tags and clicking is prohibited.
|
⚠️ **Note** : This changes the default behaviour of mermaid so that after upgrade to 8.2, if the securityLevel is not configured, tags in flowcharts are encoded as tags and clicking is prohibited.
|
||||||
|
|
||||||
If your application is taking responsibility for the diagram source security you can set the securityLevel accordingly. By doing this clicks and tags are again allowed.
|
If your application is taking responsibility for the diagram source security you can set the securityLevel accordingly. By doing this clicks and tags are again allowed.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
mermaidAPI.initialize({
|
mermaidAPI.initialize({
|
||||||
securityLevel: 'loose'
|
securityLevel: 'loose'
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
**🖖 Keep a steady pulse: mermaid needs more Collaborators [#866](https://github.com/knsv/mermaid/issues/866)**
|
**🖖 Keep a steady pulse: mermaid needs more Collaborators [#866](https://github.com/knsv/mermaid/issues/866)**
|
||||||
@@ -131,9 +131,7 @@ merge newbranch
|
|||||||
|
|
||||||
### CDN
|
### CDN
|
||||||
|
|
||||||
```
|
https://unpkg.com/mermaid@<version>/dist/
|
||||||
https://unpkg.com/mermaid@<version>/dist/
|
|
||||||
```
|
|
||||||
|
|
||||||
Replace `<version>` with expected version number.
|
Replace `<version>` with expected version number.
|
||||||
|
|
||||||
@@ -141,9 +139,7 @@ Example: https://unpkg.com/mermaid@7.1.0/dist/
|
|||||||
|
|
||||||
### Node.js
|
### Node.js
|
||||||
|
|
||||||
```
|
yarn add mermaid
|
||||||
yarn add mermaid
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
Reference in New Issue
Block a user