From 0206ff540a1f3669671a9d2ab4d1c89e81d0964a Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 24 Feb 2023 12:20:31 +0530 Subject: [PATCH] fix(#4140): Deprecate mermaidAPI.render --- docs/config/setup/modules/mermaidAPI.md | 2 +- packages/mermaid/src/mermaid.ts | 26 +++++++++++++++++++++++++ packages/mermaid/src/mermaidAPI.ts | 25 ++---------------------- 3 files changed, 29 insertions(+), 24 deletions(-) diff --git a/docs/config/setup/modules/mermaidAPI.md b/docs/config/setup/modules/mermaidAPI.md index 0406baa81a..8b24a89172 100644 --- a/docs/config/setup/modules/mermaidAPI.md +++ b/docs/config/setup/modules/mermaidAPI.md @@ -95,7 +95,7 @@ mermaid.initialize(config); #### Defined in -[mermaidAPI.ts:680](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L680) +[mermaidAPI.ts:659](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L659) ## Functions diff --git a/packages/mermaid/src/mermaid.ts b/packages/mermaid/src/mermaid.ts index 49e849148b..db72aeedba 100644 --- a/packages/mermaid/src/mermaid.ts +++ b/packages/mermaid/src/mermaid.ts @@ -337,6 +337,32 @@ const parse = async (text: string, parseOptions?: ParseOptions): Promise