mermaid-cli
mermaid-cli copied to clipboard
bug: add style node to SVG
Rudimentary solution for "custom CSS not in SVG" #55
Thank you for your PR!
Before I can accept your PR, I need at least one automated test. Please, get the latest changes from master and implement an e2e test in the run-tests.sh
. Get inspired from the existing tests. I propose this testing strategy:
- Create a css file for one of the existing diagrams in
test-positive/
. css file should have the same name as the diagram file and be placed in the same folder. - Create an svg from the diagram with css using
mmdc
. - Convert svg to png using one of Linux utilities (Percy test framework does not work with svg files)
That is it! 😄 I will be on vacation next week with a limited access to the internet. But I will get back to your PR a week after.
Have a really great day!
Closes #55