-module(html). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/html.gleam"). -export([text/1, math/2, img/1, button/2, bdi/2, sup/2, ruby/2, h4/2, footer/2, figcaption/2, dt/2, bdo/2, dl/2, title/2, br/1, video/2, 'div'/2, abbr/2, var/2, hgroup/2, summary/2, datalist/2, object/2, cite/2, rt/2, picture/2, pre/2, h2/2, del/2, ol/2, audio/2, option/2, base/1, svg/2, h5/2, template/2, track/1, em/2, fencedframe/2, form/2, label/2, kbd/2, colgroup/2, fieldset/2, dd/2, search/2, blockquote/2, th/2, caption/2, script/2, tbody/2, dialog/2, select/2, noscript/2, li/2, progress/2, source/1, map/2, meta/1, time/2, strong/2, aside/2, textarea/2, samp/2, ins/2, u/2, geolocation/2, figure/2, input/1, main/2, col/1, legend/2, body/2, slot/2, code/2, thead/2, hr/1, area/1, h3/2, ul/2, style/2, tfoot/2, h1/2, small/2, rp/2, embed/1, nav/2, td/2, h6/2, table/2, canvas/2, tr/2, q/2, optgroup/2, i/2, head/2, link/1, output/2, span/2, menu/2, a/2, selectedcontent/2, header/2, mark/2, b/2, sub/2, p/2, address/2, details/2, html/2, meter/2, section/2, wbr/1, article/2, s/2, dfn/2, iframe/2, data/2]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. ?MODULEDOC( " Element creation functions scraped from https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements\n" " This list automatically excludes any elements or attributes that are deprecated\n" ). -file("src/html.gleam", 8). -spec text(binary()) -> presentable_soup:element_tree(). text(Text) -> mellie:text(Text). -file("src/html.gleam", 13). ?DOC(" The top-level element in MathML. Every valid MathML instance must be wrapped in it. In addition, you must not nest a second element in another, but you can have an arbitrary number of other child elements in it.\n"). -spec math(list({binary(), binary()}), list(presentable_soup:element_tree())) -> presentable_soup:element_tree(). math(Attrs, Children) -> mellie:element(<<"math"/utf8>>, Attrs, Children). -file("src/html.gleam", 18). ?DOC(" Embeds an image into the document.\n"). -spec img(list({binary(), binary()})) -> presentable_soup:element_tree(). img(Attrs) -> mellie:element(<<"img"/utf8>>, Attrs, []). -file("src/html.gleam", 23). ?DOC(" An interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it performs an action, such as submitting a form or opening a dialog.\n"). -spec button(list({binary(), binary()}), list(presentable_soup:element_tree())) -> presentable_soup:element_tree(). button(Attrs, Children) -> mellie:element(<<"button"/utf8>>, Attrs, Children). -file("src/html.gleam", 28). ?DOC(" Tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text. It's particularly useful when a website dynamically inserts some text and doesn't know the directionality of the text being inserted.\n"). -spec bdi(list({binary(), binary()}), list(presentable_soup:element_tree())) -> presentable_soup:element_tree(). bdi(Attrs, Children) -> mellie:element(<<"bdi"/utf8>>, Attrs, Children). -file("src/html.gleam", 33). ?DOC(" Specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text.\n"). -spec sup(list({binary(), binary()}), list(presentable_soup:element_tree())) -> presentable_soup:element_tree(). sup(Attrs, Children) -> mellie:element(<<"sup"/utf8>>, Attrs, Children). -file("src/html.gleam", 38). ?DOC(" Represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters. It can also be used for annotating other kinds of text, but this usage is less common.\n"). -spec ruby(list({binary(), binary()}), list(presentable_soup:element_tree())) -> presentable_soup:element_tree(). ruby(Attrs, Children) -> mellie:element(<<"ruby"/utf8>>, Attrs, Children). -file("src/html.gleam", 43). ?DOC(" Represent six levels of section headings.

is the highest section level and

is the lowest.\n"). -spec h4(list({binary(), binary()}), list(presentable_soup:element_tree())) -> presentable_soup:element_tree(). h4(Attrs, Children) -> mellie:element(<<"h4"/utf8>>, Attrs, Children). -file("src/html.gleam", 48). ?DOC(" Represents a footer for its nearest ancestor sectioning content or sectioning root element. A