| addIcon | Adds an icon to the library. |
| arrayBufferToBase64 | Converts an ArrayBuffer to a base64 string. |
| arrayBufferToHex | Converts an ArrayBuffer to a hex string. |
| base64ToArrayBuffer | Converts a base64 string to an ArrayBuffer. |
| debounce | A standard debounce export function. Use this to have a time-delayed export function only be called once in a given timeframe. |
| displayTooltip | Manually trigger a tooltip that will appear over the provided element. To display a tooltip on hover, use setTooltip instead. |
| finishRenderMath | Flush the MathJax stylesheet. |
| fuzzySearch | Fuzzy search. |
| getAllTags | Combines all tags from frontmatter and note content into a single array. |
| getBlobArrayBuffer | Converts a Blob to an ArrayBuffer. |
| getFrontMatterInfo | Given the contents of a file, get information about the frontmatter of the file, including whether there is a frontmatter block, the offsets of where it starts and ends, and the frontmatter text. |
| getIcon | Create an SVG from an iconId. Returns null if no icon associated with the iconId. |
| getIconIds | Get the list of registered icons. |
| getLanguage | Get the ISO code for the currently configured app language. Defaults to ‘en’. See https://github.com/obsidianmd/obsidian-translations?tab=readme-ov-file#existing-languages for list of options. |
| getLinkpath | Converts the linktext to a linkpath. |
| hexToArrayBuffer | Converts a hex string to an ArrayBuffer. |
| htmlToMarkdown | Converts HTML to a Markdown string. |
| iterateCacheRefs | Iterate links and embeds. If callback returns true, the iteration process will be interrupted. |
| iterateRefs | If callback returns true, the iteration process will be interrupted. |
| loadMathJax | Load MathJax. |
| loadMermaid | Load Mermaid and return a promise to the global mermaid object. Can also use Window.mermaid after this promise resolves to get the same reference. |
| loadPdfJs | Load PDF.js and return a promise to the global pdfjsLib object. Can also use Window.pdfjsLib after this promise resolves to get the same reference. |
| loadPrism | Load Prism.js and return a promise to the global Prism object. Can also use Window.Prism after this promise resolves to get the same reference. |
| normalizePath | Normalizes a path replacing all invalid symbols. |
| parseFrontMatterAliases | Parses the frontmatter aliases from the frontmatter object. |
| parseFrontMatterEntry | Parses a frontmatter entry from the frontmatter object. |
| parseFrontMatterStringArray | Parses a frontmatter string array from the frontmatter object. |
| parseFrontMatterTags | Parses the frontmatter tags from the frontmatter object. |
| parseLinktext | Parses the linktext of a wikilink into its component parts. |
| parsePropertyId | Split a Bases property ID into constituent parts. |
| parseYaml | Parses a YAML string into an object. |
| prepareFuzzySearch | Construct a fuzzy search callback that runs on a target string. Performance may be an issue if you are running the search for more than a few thousand times. If performance is a problem, consider using prepareSimpleSearch instead. |
| prepareQuery | Prepare a query for fuzzy search. |
| prepareSimpleSearch | Construct a simple search callback that runs on a target string. |
| removeIcon | Remove a custom icon from the library. |
| renderMatches | Render the matches of a search. |
| renderMath | Render some LaTeX math using the MathJax engine. Returns an HTMLElement. Requires calling finishRenderMath when rendering is all done to flush the MathJax stylesheet. |
| renderResults | Render the results of a search. |
| requireApiVersion | Returns true if the API version is equal or higher than the requested version. Use this to limit export functionality that require specific API versions to avoid crashing on older Obsidian builds. |
| resolveSubpath | Resolve the given subpath to a reference in the obsidian#MetadataCache. |
| sanitizeHTMLToDom | Sanitize HTML to a DOM fragment. |
| setIcon | Insert an SVG into the element from an iconId. Does nothing if no icon associated with the iconId. |
| setTooltip | Set a tooltip on an element. |
| sortSearchResults | Sort search results. |
| stringifyYaml | Stringify a YAML object. |
| stripHeading | Normalizes headings for link matching by stripping out special characters and shrinking consecutive spaces. |
| stripHeadingForLink | Prepares headings for linking by stripping out some bad combinations of special characters that could break links. |