{
  "tag": "ed-markdown",
  "kind": "component",
  "summary": "Shows markdown text as formatted HTML, for content written or delivered as markdown such as help texts or\nrelease notes.",
  "description": "Safe for untrusted markdown by default: raw HTML in the source is escaped rather than rendered\n(`html: false`), and every link, image and autolink URL is checked against the library's scheme\nallowlist, so `javascript:` and friends never reach the DOM. Enabling HTML —\n`EdMarkdown.getMarkdownIt().set({ html: true })` — renders raw HTML live: the allowlist still\ncovers markdown links and images, not the raw HTML, and there is no output hook to sanitize it.\nTurn it on only for markdown the product's own team writes.\n\nThe MarkdownIt instance is page-global and shared by every `<ed-markdown>`, so configuration\napplies everywhere — and any other script on the page can change it too. Configure it once, at\napplication startup, and call `updateAll()` afterwards.",
  "status": "experimental",
  "level": "molecule",
  "since": "1.0",
  "docs": "https://test-apps.eurodata.de/a/eurodata-ui/docs/components/markdown/",
  "usage": "https://test-apps.eurodata.de/a/eurodata-ui/docs/components/markdown/usage/",
  "playwright": "getByTestId('…')",
  "dependencies": [],
  "use": [
    "Showing content that is written in markdown"
  ],
  "notFor": [
    {
      "when": "Any other content",
      "instead": "the components and the page's own markup"
    }
  ],
  "rules": [],
  "api": {
    "attributes": [
      {
        "name": "tab-size",
        "property": "tabSize",
        "type": "number",
        "default": "4",
        "description": "The tab stop width used when converting leading tabs to spaces during whitespace normalization."
      },
      {
        "name": "dir",
        "property": "dir",
        "type": "string"
      },
      {
        "name": "lang",
        "property": "lang",
        "type": "string"
      }
    ],
    "properties": [
      {
        "name": "markdownIt",
        "type": "MarkdownIt",
        "description": "A reference to the shared MarkdownIt instance for convenience. Equivalent to `EdMarkdown.getMarkdownIt()`."
      }
    ],
    "methods": [
      {
        "name": "getMarkdownIt",
        "static": true,
        "returns": "MarkdownIt",
        "description": "Returns the shared MarkdownIt instance used by all `<ed-markdown>` components."
      },
      {
        "name": "updateAll",
        "static": true,
        "returns": "void",
        "description": "Re-renders all connected `<ed-markdown>` instances. Call this after changing the MarkdownIt configuration."
      },
      {
        "name": "renderMarkdown",
        "description": "Reads the script content, normalizes whitespace, parses markdown, and injects the result."
      }
    ],
    "events": [],
    "slots": [
      {
        "name": "",
        "description": "The markdown source, typically a `<script type=\"text/markdown\">` element. Its text content is parsed and rendered; the slot itself is never displayed."
      }
    ],
    "cssProperties": [],
    "parts": [],
    "states": []
  },
  "import": "import '@eurodata/eurodata-ui/dist/components/markdown/markdown.js';",
  "react": {
    "component": "EdMarkdown",
    "import": "import EdMarkdown from '@eurodata/eurodata-ui/dist/react/markdown/index.js';"
  }
}
