HTML
QuackJSUtils.HTML
A class for creating HTML pages utilizing jsdom and showdown.
Constructors
constructor
• new HTML(html?
)
Creates an instance of HTML.
Parameters
html
string
'<!DOCTYPE html><html><body></body></html>'
The base HTML to be used thoughout the object.
Defined in
Properties
DOM
• DOM: JSDOM
Defined in
Accessors
document
• get
document(): Document
A getter for the document from the DOM.
readonly
Returns
Document
Defined in
Methods
ExportToHTML
â–¸ ExportToHTML(): string
This method will export the DOM to a string containing the minified HTML.
Returns
string
The minified HTML from the DOM.
Defined in
toString
â–¸ toString(): string
This method will return a string representation of the HTML class.
Returns
string
The string representation of the HTML class.
Defined in
ConvertMarkdownToHTML
â–¸ Static
ConvertMarkdownToHTML(markdown
): string
A function for converting Markdown code to HTML code.
Parameters
markdown
string
The Markdown code to be converted.
Returns
string
The converted HTML from Markdown.
Defined in
Last updated