mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-29 00:54:08 +01:00
New docs and updated dist
This commit is contained in:
@@ -153,6 +153,26 @@ graph LR;
|
||||
|
||||
```
|
||||
|
||||
### A link with arrow head and text
|
||||
```
|
||||
A-->|text|B
|
||||
```
|
||||
```mermaid
|
||||
graph LR;
|
||||
A-->|text|B
|
||||
```
|
||||
|
||||
or
|
||||
```
|
||||
A-- text -->B
|
||||
```
|
||||
```mermaid
|
||||
graph LR;
|
||||
A-- text -->B
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Dotted link
|
||||
-.->
|
||||
```mermaid
|
||||
|
||||
@@ -23,5 +23,5 @@ mermaid_config = {
|
||||
```
|
||||
mermaid.initialize({
|
||||
startOnLoad:true
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
@@ -144,7 +144,7 @@ could be used. The example just logs the resulting svg to the javascript console
|
||||
<script>
|
||||
mermaidAPI.initialize({
|
||||
startOnLoad:false
|
||||
});
|
||||
});
|
||||
// Example of using the API
|
||||
$(function(){
|
||||
var graphDefinition = 'graph TB\na-->b';
|
||||
@@ -158,7 +158,7 @@ could be used. The example just logs the resulting svg to the javascript console
|
||||
$ = require('jquery');
|
||||
mermaidAPI = require('mermaid').mermaidAPI;
|
||||
mermaidAPI.initialize({
|
||||
startOnLoad:false
|
||||
startOnLoad:false
|
||||
});
|
||||
|
||||
$(function(){
|
||||
|
||||
Reference in New Issue
Block a user