Skip to main content

Module parser

Module parser 

Source

Re-exports§

pub use span::ByteSpan;
pub use span::CodeSpans;
pub use span::Line;
pub use span::RegionOrigin;
pub use span::SpannedRegion;
pub use span::flush_prose_spanned;
pub use span::iter_lines;
pub use span::push_prose_line;

Modules§

latex
markdown
org
pandoc
Pandoc parses first; snapper reflows second.
plaintext
rst
span
Source-byte spans for splice reflow.

Enums§

Region
A region of text classified by a format parser.

Traits§

FormatParser
Trait for format-specific parsers that classify text into regions.

Functions§

check_pragma
Check if a line contains a snapper pragma. Returns Some(false) for “snapper:off”, Some(true) for “snapper:on”, None otherwise.
flush_prose
Flush accumulated prose into the region list, clearing the buffer.
parser_for_format
Create the appropriate parser for a given format (built-in lists only).
parser_for_format_config
Create a parser, applying [latex] extras from config when present.
source_line_payloads
Per-source-line prose payload from the same parse_full walk format uses.