mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-07 16:19:38 +02:00
Update packages/mermaid/src/mermaidAPI.ts
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -99,7 +99,7 @@ export interface RenderResult {
|
|||||||
* @throws Error if the diagram is invalid and parseOptions.suppressErrors is false.
|
* @throws Error if the diagram is invalid and parseOptions.suppressErrors is false.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
async function parse(text: string, parseOptions?: ParseOptions): Promise<boolean | void> {
|
async function parse(text: string, parseOptions?: ParseOptions): Promise<boolean> {
|
||||||
addDiagrams();
|
addDiagrams();
|
||||||
try {
|
try {
|
||||||
const diagram = await getDiagramFromText(text);
|
const diagram = await getDiagramFromText(text);
|
||||||
|
Reference in New Issue
Block a user