mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 18:30:10 +02:00
fix parseError documentation to match reality
This commit is contained in:
@@ -29,7 +29,7 @@ statement
|
|||||||
In the extract of the grammar above, it is defined that a call to the setTitle method in the data object will be done when parsing and the title keyword is encountered.
|
In the extract of the grammar above, it is defined that a call to the setTitle method in the data object will be done when parsing and the title keyword is encountered.
|
||||||
|
|
||||||
```tip
|
```tip
|
||||||
Make sure that the `parseError` function for the parser is defined and calling `mermaidPAI.parseError`. This way a common way of detecting parse errors is provided for the end-user.
|
Make sure that the `parseError` function for the parser is defined and calling `mermaid.parseError`. This way a common way of detecting parse errors is provided for the end-user.
|
||||||
```
|
```
|
||||||
|
|
||||||
For more info look in the example diagram type:
|
For more info look in the example diagram type:
|
||||||
@@ -38,7 +38,7 @@ The `yy` object has the following function:
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
exports.parseError = function(err, hash){
|
exports.parseError = function(err, hash){
|
||||||
mermaidAPI.parseError(err, hash)
|
mermaid.parseError(err, hash)
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user