diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index e9f00b26b..dbb5e5aaf 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -104,4 +104,4 @@ "**/*.css", "**/*.scss" ] -} \ No newline at end of file +} diff --git a/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts b/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts index 9c3b35a68..c157cf679 100644 --- a/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts +++ b/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts @@ -27,9 +27,9 @@ const MermaidExample = async (md: MarkdownRenderer) => { mermaid ${ - // html is pre-escaped by the highlight function - // (it also adds `v-pre` to ignore Vue template syntax) - md.options.highlight(token.content, 'mermaid', langAttrs) + // html is pre-escaped by the highlight function + // (it also adds `v-pre` to ignore Vue template syntax) + md.options.highlight(token.content, 'mermaid', langAttrs) } `; } else if (token.info.trim() === 'mermaid') { diff --git a/packages/mermaid/src/docs/.vitepress/theme/index.ts b/packages/mermaid/src/docs/.vitepress/theme/index.ts index a56a7bade..efb065fea 100644 --- a/packages/mermaid/src/docs/.vitepress/theme/index.ts +++ b/packages/mermaid/src/docs/.vitepress/theme/index.ts @@ -20,7 +20,7 @@ export default { // router.go isn't loading the ID properly. window.location.href = `/mermaid/${newPath}`; } - } catch (e) { } + } catch (e) {} }; }, } as typeof DefaultTheme;