obsidian/html-element
Obsidian-specific HTML element helpers.
Unlike the Obsidian-runtime-agnostic helpers in src/html-element.ts, these depend on Obsidian-specific presentation — currently the markdown-rendered CSS class that styles rendered markdown — so they live in the Obsidian layer and use Obsidian’s createEl DOM augmentation.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| appendCodeBlock | Appends a code block to the given DocumentFragment or HTMLElement, styled to match Obsidian’s rendered-markdown inline code. |