Crate mediawiki_parser

source ·

Modules

Functions and types for source tree transformations.

Structs

Comments in the input document.
The document root.
Indicates an erroneous part of the document tree.
External reference, usually hyperlinks.
A formatting wrapper, usually around text.
Gallery of images (or interal references in general).
Headings make a hierarchical document structure. Headings of higher depths have other headings as parents.
Html tags not encoding formatting elements.
A reference to internal data, such as embedded files or other articles.
List of items. The ListItemKind of its children can be heterogenous.
List item of a certain ListItemKind.
Paragraphs are separated by newlines in the input document.
The parser error with source code context.
Represents a position in the source document.
Position of a source line of code.
Holds position information (start and end) for one element
A mediawiki table. attributes represent html attributes assigned to the table.
A single table cell. attributes represent html attributes assigned to the table. header is true if this cell is marked as a header cell.
A table row. attributes represent html attributes assigned to the table.
Represents a pair of html tag attribute and value.
A mediawiki template.
Argument of a mediawiki template. Empty name indicate anonymous arguments.
Simple text.
Error structure for syntax tree transformations.

Enums

Element types used in the abstract syntax tree (AST).
Types of markup a section of text may have.
Generic error type for high-level errors of this libaray.
Types of markup a section of text may have.

Traits

Implements a traversion over a tree of Element.

Functions

Parse the input document to generate a document tree. After parsing, some transformations are applied to the result.