Open tstarbow-sfdc opened 1 year ago
So I am guessing something like this, added around line 252 of index.js would solve the problem, but I haven't tested it:
:+1: It looks like this will solve the problem (or at least something similar). However, I'm a bit reluctant, since using an external URL means that we need to worry about internet connectivity and breaking European/Californian privacy laws.
(Although we could make that feature opt-in, so that then the user can worry about privacy laws)
Ideally, we should somehow embed that CSS file into the SVG.
Modifying the index.js does seem to work. Is there a solution for using the css file locally, so images can be rendered without internet connection?
I am not seeing fontawesome icon in the rendered svg files. Rendering the fontawesome example from the mermaid doc only shows the text:
However, if I crack open the generated svg file, and add the following line, the icons show up as expected:
So I am guessing something like this, added around line 252 of index.js would solve the problem, but I haven't tested it: