Module parse
Source - Context ๐
- Parsing context
- BreakRule ๐
- Whether two types should or shouldnโt have a paragraph break between them
- ParseOpt ๐
- Flags to simple parser function
- Prev ๐
- Character class preceding this one
- ANC_E ๐
- Short aliases that we can use in match patterns. If an end pattern is not
included, this type may be variable
- ANC_S ๐
- BRK ๐
- CBK ๐
- CIL ๐
- CMT_E ๐
- CMT_S ๐
- EMP_A ๐
- EMP_U ๐
- HDG ๐
- LNK_CHARS ๐
- LNK_E ๐
- LNK_S ๐
- REPLACEMENTS ๐
- Pattern replacements
- STG_A ๐
- STG_U ๐
- STK ๐
- entrypoint ๐
- Parse a buffer
- expand_plaintext ๐
- Perform transformations to text. This splits paragraphs, replaces patterns,
and corrects newlines.
- get_indented_section ๐
- is_break_ty ๐
- Types that indicate some form of break
- match_reflink ๐
- Turn reflinks (links with reference IDs) into normal standalone links using
listed link definitions
- normalize ๐
- Take a parsed stream and fix the little things
- ord_list_start ๐
- Verify a valid ordered list start (e.g.
1.
) and parse it. Returns the
parsed number and offset of character after the dot. - parse_any_link ๐
- Parse links.
can_be_def
indicates that a link definition is possible (top
level, located at the start of a line) - parse_codeblock ๐
- Parse a codeblock. Accounts for >3 backticks and language specification
- parse_codeinline ๐
- Parse backtick-wrapped inline code. Accounts for >1 backtick sets
- parse_heading ๐
- parse_ordered_li ๐
- Numbered list
- parse_recursive ๐
- Parse a buffer with specified context
- parse_simple_pat ๐
- The simplest kind of patterns: data within start and end patterns
- parse_to_newline ๐
- Return
(match, residual)
to end of line. The EOL is returned with the
residual. - parse_unordered_li ๐
- Bulleted list
- parse_with_end_pat ๐
- Find and consume an end pattern, return
(match, residual)
- should_break ๐
- Blocks that automatically handle their own text wrapping
- trim_ascii_start ๐
- If there is more than one whitespace char at start, trim the extras
- trim_extra_ws ๐
- If there is more than one whitespace char at start or end, trim the extras
- unordered_list_start ๐
- ParseResult ๐
- Output of a parse function
- Parsed ๐
(extracted, remaining)