obsidian/functions/getIcon
Mock of Obsidian’s getIcon.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| getIcon | Creates an SVG element for an icon. As in Obsidian, an icon added with addIcon becomes an <svg> with a 0 0 100 100 view box holding the icon’s content, and the element carries the classes svg-icon and the icon id. The mock knows only icons added with addIcon. Obsidian also resolves its Lucide set (lucide-* names and the legacy aliases mapped onto it) and its own glyphs; those are a few hundred kilobytes of SVG data and are deliberately not bundled, so their ids return null here. |