Ga naar hoofdinhoud

CnMarkdownWidget

Prose inside a grid page. Renders content.markdown through the one shared cnRenderMarkdown path (marked, then DOMPurify), the same renderer CnWikiPage uses, so the output is equivalent and a script tag, an event handler or a javascript: URL does not survive. Registered under the markdown type and configured by CnMarkdownWidgetForm.

It is the first catalog widget registered public: true, so a public host (the portal) may mount it; see the public flag.

{ "widgetKey": "markdown", "slot": "body", "gridX": 0, "gridY": 0, "gridWidth": 6, "gridHeight": 3, "props": { "content": { "markdown": "# Welcome" } } }

Props​

PropTypeDefaultDescription
contentobject{}The widget config: { markdown }.

OpenRegister reliance​

none: this component does not touch OpenRegister, directly or through anything it imports. 0 direct references, 0 files reached through imports.

See the reliance overview for the filterable list.

Props​

NameTypeRequiredDefaultDescription
content{markdown?: string}\{\}The widget's configuration: { markdown }.