You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I moved from Mermaid to Pintora for my blog in Astro because I need SSR (see mermaid-js/mermaid#3650), and solutions involving pupeteer end up with a result which is not consistent across browsers, contrary to what I've seen with Pintora.
However, the documentation to use Pintora as a library is really confusing (or non-existent), it's designed to be used in Node.js as a CLI only, not a as a library.
I circumvented the issue to generate an SVG from a string in a Node.js script by importing the render function from '@pintora/cli':
In the API usage documentation, there is no mention of how to use the CLI's Node.js APIs, and no mention of how to use the '@pintora/standalone' package to generate an SVG from a string.
I would suggest to either:
document the API of '@pintora/cli'
or to embed within '@pintora/standalone' the render function from '@pintora/cli' which allows using it in a Node.js script.
The text was updated successfully, but these errors were encountered:
Thank you for the try and this feedback, I'll look into it this weekend.
Basically it's the former one, add some documentation about how to use @pintora/cli as a node.js library.
Hi,
I moved from Mermaid to Pintora for my blog in Astro because I need SSR (see mermaid-js/mermaid#3650), and solutions involving pupeteer end up with a result which is not consistent across browsers, contrary to what I've seen with Pintora.
However, the documentation to use Pintora as a library is really confusing (or non-existent), it's designed to be used in Node.js as a CLI only, not a as a library.
I circumvented the issue to generate an SVG from a string in a Node.js script by importing the
render
function from'@pintora/cli'
:In the API usage documentation, there is no mention of how to use the CLI's Node.js APIs, and no mention of how to use the
'@pintora/standalone'
package to generate an SVG from a string.I would suggest to either:
'@pintora/cli'
'@pintora/standalone'
the render function from'@pintora/cli'
which allows using it in a Node.js script.The text was updated successfully, but these errors were encountered: