Open ernstki opened 3 years ago
I can help with this if @howlowck wouldn't mind just giving me a shove in the right direction, as far as what was intended there in src/Config.php
.
Any updates on this?
EDIT: for anyone else encountering this problem: it gets cached, gotta update the chart to see changes, hardcoding in Config.php
works
Setup and configuration
Issue
The config variable
$mermaidgDefaultTheme
is ignored, as isconfig.DefaultTheme.value
fromextension.json
;Mermaid\Config::getDefaultTheme()
always returnsforest
no matter what.Well, it always returns
forest
unless you modify it to return something else likedefault
orneutral
, or hard-code the theme value atMermaidParserFunction.php
line 80.Steps to reproduce the observation:
INSTALL.md
$mermaidgDefaultTheme
to something other thanforest
, as per INSTALL.md#configurationAmplifying information
Step-debugging through
src/Config.php
reveals that$this->globalConfig
is basically empty (at line 21) whenMermaid\Config::getDefaultTheme()
is invoked from withinMermaid\MermaidParserFunction::parse
(at line 80).I assume this was meant to contain something, maybe settings from the
config
section ofextension.json
, or variables configured inLocalSettings.php
, but it's beyond my level of understanding at the present moment to exactly surmise what or why.