question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to compile text to SVG? Like this:

var svg = mermaid.toSVG(text);

This is by far the most necessary function for this library. Other stuff, like including the full he library and traversing DOM on every mermaid.init() call and attaching data-processed tags to elements is really overkill, makes the library much bigger unnecessarily. The integration specifics should be left to the plugin developers…

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:23 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
tenukicommented, Dec 23, 2020

Guys, please check this project: https://github.com/mermaidjs/mermaid.cli

That’s nice it seems to work, what isn’t nice is having to relay in puppeteer just to export some svg : https://github.com/mermaid-js/mermaid-cli/blob/master/package.json#L19

0reactions
tylerlongcommented, Mar 16, 2018

Guys, please check this project: https://github.com/mermaidjs/mermaid.cli

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG Export
SVG Export is a great tool that searches for SVGs on websites and enables you to rapidly export them as PNGs, JPEGs or...
Read more >
Export high-quality, optimized SVG - Adobe Illustrator
To export a section or component of your design to SVG, select it, and then choose File > Export Selection > SVG (svg)....
Read more >
SVG Export
A great tool that searches for SVGs on websites and enables you to rapidly export them as PNGs, JPEGs or SVGs with ease....
Read more >
How To Export A SVG File In Illustrator CC - YouTube
Learn how to export an SVG file in Adobe Illustrator CC in this super easy tutorial.#illustrator#vector#illustrator2022For use in web design ...
Read more >
How To Export SVG Files In Photoshop - 2 Fastest Methods
When you are working with a logo or graphic, exporting to SVG gives you more options for how you can use your image...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found