Function ftml::preprocess [−][src]
pub fn preprocess(log: &Logger, text: &mut String)
Run the preprocessor on the given wikitext, which is modified in-place.
The following modifications are performed:
- Expand instances of
[[include]]
- Replacing DOS and legacy Mac newlines
- Trimming whitespace lines
- Concatenating lines that end with backslashes
- Convert tabs to four spaces
- Wikidot typography transformations
This call always succeeds. The return value designates where issues occurred to allow programmatic determination of where things were not as expected.