Structsยง
- Context ๐
- Parsing context
Enumsยง
- Break
Rule ๐ - Whether two types should or shouldnโt have a paragraph break between them
- Parse
Opt ๐ - Flags to simple parser function
- Prev ๐
- Character class preceding this one
Constantsยง
- 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 ๐
Functionsยง
- 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_defindicates 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_
extra_ ๐ws - If there is more than one whitespace char at start or end, trim the extras
- unordered_
list_ ๐start
Type Aliasesยง
- Parse
Result ๐ - Output of a parse function
- Parsed ๐
(extracted, remaining)