<baht-markdown-view>
Markdown source as sanitized HTML. Images embed only where allowImage says, same origin by default. Apps need the marked and dompurify peers.
Basic
Events (name)
<baht-markdown-view></baht-markdown-view>
<script>
const el = document.querySelector('baht-markdown-view');
el.source = "## Root cause\n\nThe disk was **full**.";
</script>Properties
Section titled “Properties”| Name | Type | Default | Description |
|---|---|---|---|
source | string | '' | The markdown source |
allowImageJS | MarkdownImagePolicy | undefined | — | Which image URLs may embed; any other image renders as a link. Same origin when unset |