Create an alignment element.
Create an alpha modulator element.
Create a bold element.
Create a colour element.
Create a font element.
Create a highlight element.
Create an indentation element.
Create an italics element.
Create a link element.
Create a line height element.
Create a line indent element.
Create a lowercase element.
Create a margin element.
Create a monospace element.
Create a non-breaking space element.
Create a page break element.
Create a position element.
Create a font size element.
Create a smallcaps element.
Create a space element.
Create a spacing element.
Create a strikethrough element.
Create a strikethrough element.
Create a subscript element.
Create a superscript element.
Create a text element.
Create an underline element.
Create an uppercase element.
Create a vertical offset element.
Create a width element.
Generated using TypeDoc
@skeldjs/text
This package contains a text building API for the Rich Text formatter used in Among Us, meant to be installed separately with
npm install --save @skeldjs/text
oryarn add @skeldjs/text
, and is one package of a bigger project, skeldjs.You can view auto-updating documentation for this package hosted at github pages at https://skeld.js.org/modules/text.html
Basic Usage
Creating a basic document
or you can define a boilerplate for the document, where the children of the elements in the
tb
function are not considered.You can also create elements standalone.
Parse RichText
The package also provides a way to parse the Rich Text format.
Generate HTML
It also provides a way to convert roughly to HTML where possible.