Module lib::processor::process

source ·
Expand description

Pre-processors for manipulating Entry, Book and Annotation types before they are rendered and post-processors for manipulating a template after it’s been rendered.

Functions

Converts all Unicode characters to their ASCII equivalent.
Converts a subset of “smart” Unicode symbols to their ASCII equivalents. See UNICODE_TO_ASCII_SYMBOLS for list of symbols and their ASCII equivalents.
Extracts all #tags from a string.
Trims whitespace and replaces all linebreaks with: \n\n.
Removes all #tags from a string.
Normalizes linebreaks by replacing three or more consecutive linebreaks with two consecutive linebreaks.