mermaid-js / mermaid-cli

Command line tool for the Mermaid library
MIT License
2.2k stars 207 forks source link

perf: skip launching puppeteer when not needed #696

Closed aloisklink closed 1 month ago

aloisklink commented 1 month ago

:bookmark_tabs: Summary

Skip launching puppeteer until it's actually needed.

Running mermaid-cli on a markdown file without any mermaid code blocks shouldn't launch puppeteer, if it's unnecessary.

Resolves https://github.com/mermaid-js/mermaid-cli/issues/694

:straight_ruler: Design Decisions

N/A

:clipboard: Tasks

Make sure you

MindaugasLaganeckas commented 1 month ago

Thank you!