mermaidInit function
This wraps the native mermaid.init() with an additional call to
mermaid.Initialize() so the Config parameter is honored. (the native
mermaid.init() always INGORES the configuration object, which
can be confusing because mermaid docs don't always indicate that).
If no selector is specified than all elements with class="mermaid"
are targeted
configObject
a configuration object that will be sent to mermaidInitialize.
selectorStringOrElementOrListOfElements
A W3C selector String, or an Element,
or an List
Implementation
void mermaidInit(
Config? configObject, Object? selectorStringOrElementOrListOfElements) {
if (configObject != null) {
mermaidInitialize(configObject);
}
mermaidInitNative(null, selectorStringOrElementOrListOfElements);
}