Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass in mermaid options #2

Closed
audunsol opened this issue Aug 13, 2021 · 3 comments
Closed

Pass in mermaid options #2

audunsol opened this issue Aug 13, 2021 · 3 comments

Comments

@audunsol
Copy link

Describe the solution you'd like
Would it be possible to have the opportunity to pass in mermaid options via this plugin? E.g.

mermaid.initialize({
  startOnLoad: true,
  securityLevel: 'loose' // <-- Example of additional stuff I think would be nice...
})

Describe alternatives you've considered
Considered to try using the solution from here directly instead (but the plugin looks cleaner).

Additional context
Thanks for the plugin!

sjwall added a commit that referenced this issue Aug 17, 2021
@sjwall
Copy link
Owner

sjwall commented Aug 18, 2021

I have added this in v1.1.0

Let me know how it goes

@sjwall sjwall closed this as completed Aug 18, 2021
@audunsol
Copy link
Author

Sorry for the long delay here!

But just wanted to let you know it works perfectly for me now. Thanks!

@markuman
Copy link

markuman commented Nov 8, 2022

How do I set securityLevel: 'loose' in a docusaurus 2 setup?

docs: {
          sidebarPath: require.resolve('./sidebars.js'),
          remarkPlugins: [require('mdx-mermaid')],
          ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants