Skip to content

obsidian/functions/addIcon

Mock of Obsidian’s addIcon, which registers a custom icon.

Function Description
addIcon Adds an icon to the icon library. The mock stores the SVG content in an in-memory registry shared with getIcon, getIconIds, removeIcon and setIcon.