mermaid-js/mermaid-cli

Using a config file does not work

TeaDrinkingProgrammer opened this issue · 1 comments

Describe the bug
The CLI does not respect the use of a config file

To Reproduce

  1. Make a repro.mmd file with the following contents:
mindmap
  root((test))
    Hello world

  1. Make a mmconfig.json file with the following content:
{
    "theme": "dark"
}

  1. Execute the following command in the folder: mmdc -i ./repro.mmd -o output.png -c ./mmconfig.json

Expected behavior
Resulting image should have the configuration applied, but has a light theme instead of a dark theme

Screenshots
Resulting image:
output

Desktop (please complete the following information):

  • OS: Fedora 39 KDE
  • Browser N.A
  • Version 10.6.1

Related to #621