Module: html2wt/LinkHandler

Serializes link markup.

Methods

(inner) figureHandler(node) → {Promise}

Main figure handler.

Main figure handler.

All figures have a fixed structure:

<figure or figure-inline typeof="mw:Image...">
 <a or span><img ...><a or span>
 <figcaption>....</figcaption>
</figure or figure-inline>

Pull out this fixed structure, being as generous as possible with possibly-broken HTML.

Parameters:
Name Type Description
node Node
Source:
Returns:
Type
Promise

(inner) linkHandler(node) → {Promise}

Main link handler.

Main link handler.

Parameters:
Name Type Description
node Node
Source:
Returns:
Type
Promise

(inner) stripSuffix()

Strip a string suffix if it matches.

Strip a string suffix if it matches.

Source: