mkRawNormalElem : String -> Elab () Generates a normal element raw function using the element's name.
The function will be named `raw_<name>` and will create a `<name>` element.
The type of the generated function is:
`List Attribute -> List Element -> List Element`
The following example:
```idris2 example
%runElab mkNormalElem "a"
```
generates the below code:
```idris2
public export
raw_a : List Attribute -> List Element -> List Element
raw_a attrs elems = pure $ NormalElement "a" attrs elems
```
Totality: total
Visibility: exportmkRawVoidElem : String -> Elab () Generates a void element raw function using the element's name.
The function will be named `raw_<name>` and will create a `<name>` element.
The type of the generated function is:
`List Attribute -> List Element`
The following example:
```idris2 example
%runElab mkNormalElem "br"
```
generates the below code:
```idris2
public export
raw_br : List Attribute -> List Element
raw_br elems = pure $ VoidElement "br" attrs
```
Totality: total
Visibility: exportmkRawElems : List Config -> Elab () Generates element raw functions using the elements' names.
The functions will be named `raw_<name>` and will create `<name>`
elements.
Totality: total
Visibility: exporthtmlCode : String -> List Element Unescaped HTML code.
This can be useful, if you need to inject some HTML code from another source
typically from a conversion from Markdown.
> [!WARNING]
> To use with caution of course, as the HTML will not be escaped. You must
> be certain of the source of this HTML code and that it cannot be
> malicious.
Totality: total
Visibility: public exportplainText : String -> List Element Plain text which can be used inside a HTML element.
Note: HTML code is escaped.
Totality: total
Visibility: public exportscriptContent : String -> List Element Script content which can be used inside a **script** element.
Note: the script code is escaped.
Totality: total
Visibility: public exportstyleContent : String -> List Element CSS content which can be used inside a **style** element.
Note: the CSS code is escaped.
Totality: total
Visibility: public exportraw_html5 : List Attribute -> List Element -> Html Both a doctype preambule and a **html** element.
Totality: total
Visibility: public exportraw_title : List Attribute -> NonWhitespace -> List Element The **title** element.
Totality: total
Visibility: public export