Skip to content

Untitled array in Mermaid Config Schema

txt
https://mermaid.js.org/schemas/config.schema.json#/properties/secure

此选项控制哪些 currentConfig 密钥被视为安全,并且只能通过调用 mermaid.initialize 进行更改。这可以防止恶意图形指令覆盖站点的默认安全性。

AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusUnknown identifiabilityForbiddenAllowednoneconfig.schema.json*

secure Type

string[]

secure Default Value

The default value is:

json
["secure", "securityLevel", "startOnLoad", "maxTextSize", "suppressErrorRendering", "maxEdges"]