Skip to content

Dom

Functions

[markdown_to_html]{#markdown_to_html data-4search="ui/dom.js:markdown_to_html;func"} (element, markdown_text) : Generate element.innerHTML from markdown_text

[font_family_loaded]{#font_family_loaded data-4search="ui/dom.js:font_family_loaded;func"} (options) : Check if a particular font is present (and deviates from the fallback font)

[get_uri]{#get_uri data-4search="ui/dom.js:get_uri;func"} (element) : Fetch URI from a DOM element, returns undefined if none is found (e.g. Number(0) is a valid URI).

[valid_uri]{#valid_uri data-4search="ui/dom.js:valid_uri;func"} (uri) : Check if URI is not undefined.

[has_uri]{#has_uri data-4search="ui/dom.js:has_uri;func"} (element) : Check if DOM element has valid URI.

[text_content]{#text_content data-4search="ui/dom.js:text_content;func"} (element, with_children) : Get .textContent with or without children from a DOM element.

[show_modal]{#show_modal data-4search="ui/dom.js:show_modal;func"} (dialog) : Show a dialog via showModal() and close it on backdrop clicks.