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

fix: broaden renderMermaid browser type #768

Conversation

aloisklink
Copy link
Member

📑 Summary

Allow passing either a Puppeteer Browser or a Puppeteer BrowserContext to renderMermaid, as both work fine.

See: https://pptr.dev/api/puppeteer.browser
See: https://pptr.dev/api/puppeteer.browsercontext

📏 Design Decisions

N/A

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted master branch

Allow passing either a Puppeteer Browser or a Puppeteer BrowserContext
to renderMermaid, as both work fine.
@github-actions github-actions bot added the fix label Oct 12, 2024
@aloisklink aloisklink merged commit 90f0bb2 into mermaid-js:master Oct 29, 2024
6 checks passed
@aloisklink aloisklink deleted the fix/broaden-renderMermaid-browser-type branch October 29, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants