Skip to content
bahtuiv0.18.8

<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

<baht-markdown-view></baht-markdown-view>

<script>
  const el = document.querySelector('baht-markdown-view');
  el.source = "## Root cause\n\nThe disk was **full**.";
</script>
NameTypeDefaultDescription
sourcestring''The markdown source
allowImageJSMarkdownImagePolicy | undefined—Which image URLs may embed; any other image renders as a link. Same origin when unset