Open pcholakov opened 2 years ago
Haven't looked at the extension code but the Mermaid docs now show a mechanism for registering a syntax error callback - from https://mermaid-js.github.io/mermaid/#/usage?id=advanced-usage:
mermaid.parseError = function(err,hash){
displayErrorInGui(err);
};
This can be seen as a continuation of #46
Syntax errors are currently not reported with any level of detail by extension v1.13.2, e.g.:
Produces this output in the preview pane:
By contrast, the Mermaid online editor will helpfully point to the location of the problem: