Class: WikitextSerializer

html2wt/WikitextSerializer~WikitextSerializer(options)

new WikitextSerializer(options)

Serializes a chunk of tokens or an HTML DOM to MediaWiki's wikitext flavor.

Serializes a chunk of tokens or an HTML DOM to MediaWiki's wikitext flavor.

Parameters:
Name Type Description
options Object

List of options for serialization.

Properties
Name Type Attributes Default Description
env MWParserEnvironment
rtTestMode boolean <optional>
logType string <optional>
"trace/wts"
Source:

Members

serializeDOM

Serialize an HTML DOM document.

Serialize an HTML DOM document. WARNING: You probably want to use FromHTML.serializeDOM instead.

Source:

serializeHTML

...

Methods

emitWikitext()

Emit non-separator wikitext that does not need to be escaped.

Emit non-separator wikitext that does not need to be escaped.

Source: