Module notedown_parser::utils [−][src]
Macros
slugify |
Structs
Error | Parse-related error type. |
LSPMetaInfo | |
NoteDownParser | |
Pair | A matching pair of |
Pairs | An iterator over |
Position | Position in a text document expressed as zero-based line and character offset. A position is between two characters like an ‘insert’ cursor in a editor. |
Range | A range in a text document expressed as (zero-based) start and end positions. A range is comparable to a selection in an editor. Therefore the end position is exclusive. |
Span | A span over a |
TOC | |
Url | A parsed URL record. |
Enums
Rule | |
TextError |
Traits
Parser | A trait with a single method that parses strings. |
Functions
capitalize_first_letter | |
dedent | Removes common leading whitespace from each line. |
dedent_less_than | Removes at most n leading whitespace from each line |
indent | Adds spaces to each non-empty line. |
indent_count | |
indent_with | Adds prefix to each non-empty line. |
join_ast_list | |
slugify | |
unescape | Takes in a string with backslash escapes written out with literal backslash characters and converts it to a string with the proper escaped characters. |
unescape_dec_chars | unescape \u{xx xx xx} |
unescape_hex_chars | unescape \U{xx xx xx} |
unescape_only | |
unescape_unchecked⚠ | unchecked version of unescape |
unescape_utf8 | |
url_decode | |
url_encode |