Skip to main content

parse_raw_tex_block

Function parse_raw_tex_block 

Source
pub fn parse_raw_tex_block(
    builder: &mut GreenNodeBuilder<'static>,
    lines: &[&str],
    start_pos: usize,
    blockquote_depth: usize,
) -> usize
Expand description

Parse a raw TeX block from lines array.

Collects one or more consecutive lines of LaTeX commands into a single TEX_BLOCK node, stopping at blank lines or non-LaTeX content.

Returns the number of lines consumed.