Open yankeeinlondon opened 3 years ago
You can do just that but Mermaid in itself uses the browser so I am not sure if this will help you. You can look at some code from our rendering tests as an example of using the API though and try it out: https://github.com/mermaid-js/mermaid/blob/develop/cypress/platform/bundle-test.js
I would like to be able to convert textual mermaid instructions into the appropriate HTML (aka, mainly SVG but also interior DIV elements) using the Mermaid API but it seems as if the examples all use the
render()
method and that this actually reaches into the browser'sdocument
object. In my situation I would not have access to the DOM and was hoping I could use the API to just generate the markup.Is this possible? Are there any examples you can point me to? I did think at first maybe I could use the lower level
render()
function to achieve this goal but so far I've not had success.