Crate pulldown_latex

source ·
Expand description

This crate provides a pull Parser for LaTeX math expressions, and a MathML renderer, available through the mathml module, which closely follows the MathML Core specification.

Modules§

  • Configuration options for the renderer.
  • The definition of the Event enum, which is used as a logical representation of LaTeX content.
  • A simple mathml renderer.
  • Contains the Parser, which Transforms input LaTeX into a stream of Result<Event, ParserError>.

Structs§

  • The parser completes the task of transforming the input LaTeX into a symbolic representation, namely a stream of Events.
  • Anything that could possibly go wrong while parsing.
  • Configuration for the mathml renderer.

Enums§

  • All events that can be produced by the parser.

Functions§

  • Takes a Parser, or any Iterator<Item = Result<Event<'_>, E>> as input, and renders a string of MathML into the input string.
  • Takes a Parser, or any Iterator<Item = Result<Event<'_>, E>>, as input and renders the MathML into the given writer.