Class: QuoteTransformer

wt2html/tt/QuoteTransformer~QuoteTransformer()

new QuoteTransformer()

...

Extends

Methods

convertBold()

Convert a bold token to italic to balance an uneven number of both bold and italic tags.

Convert a bold token to italic to balance an uneven number of both bold and italic tags. In the process, one quote needs to be converted back to text.

Source:

onQuote()

Handle QUOTE tags.

Handle QUOTE tags. These are collected in italic/bold lists depending on the length of quote string. Actual analysis and conversion to the appropriate tag tokens is deferred until the next quote-scope-ending token triggers processQuotes.

Source:

processQuotes()

Handle quote-scope-ending tokens that trigger the actual quote analysis on the buffered quote tokens so far.

Handle quote-scope-ending tokens that trigger the actual quote analysis on the buffered quote tokens so far.

Source:

quoteToTag()

Convert italics/bolds into tags.

Convert italics/bolds into tags.

Source: