Big fan of your library, we just started using it to power our mermaid diagrams for https://ngrok.com/blog!
Background
Right now, even with caching playwright installs in our GitHub Actions, we still need to spend around a minute or two on just installing fonts used by chromium. This feels solveable at least, like with docker or some other higher level of caching (can't seem to cache and install /usr/* things in GitHub action runners).
Feature Request
So, ultimately, I am looking to improve our CI times in GitHub Actions by using docker to create a playwright image and starting that as a sidecar during build. And my feature request is to somehow allow rehype-mermaid to pass options to mermaid-isomorphic that will ultimately use connect instead of launch when starting playwright to generate the mermaid svgs at build time. As in, I start a "remote" playwright server that rehype-mermaid + mermaid-isomorphic uses.
My napkin math suggests this will give us around 40-60% faster GitHub action jobs.
Happy to contribute the feature or answer any further questions you have!
Big fan of your library, we just started using it to power our mermaid diagrams for https://ngrok.com/blog!
Background
Right now, even with caching playwright installs in our GitHub Actions, we still need to spend around a minute or two on just installing fonts used by chromium. This feels solveable at least, like with docker or some other higher level of caching (can't seem to cache and install
/usr/*things in GitHub action runners).Feature Request
So, ultimately, I am looking to improve our CI times in GitHub Actions by using docker to create a playwright image and starting that as a sidecar during build. And my feature request is to somehow allow
rehype-mermaidto pass options tomermaid-isomorphicthat will ultimately useconnectinstead oflaunchwhen startingplaywrightto generate the mermaid svgs at build time. As in, I start a "remote" playwright server thatrehype-mermaid+mermaid-isomorphicuses.My napkin math suggests this will give us around 40-60% faster GitHub action jobs.
Happy to contribute the feature or answer any further questions you have!