mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 08:39:38 +02:00
Merge branch 'neo-new-shapes' of github.com:Mermaid-Chart/alana-mermaid into neo-new-shapes
This commit is contained in:
@@ -340,10 +340,7 @@ const executeQueue = async () => {
|
||||
* // throws Error
|
||||
* ```
|
||||
*/
|
||||
const parse = async (
|
||||
text: string,
|
||||
parseOptions?: ParseOptions
|
||||
): Promise<boolean | void | ParseResult> => {
|
||||
const parse: typeof mermaidAPI.parse = async (text, parseOptions) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
// This promise will resolve when the render call is done.
|
||||
// It will be queued first and will be executed when it is first in line
|
||||
|
Reference in New Issue
Block a user