Functions
parse_html_only
2
tuple[Block, ...]
▼
Pattern 3: (HTML_BLOCK,) - 3.7% of examples.
Just HTML blocks, no other conten…
parse_html_only
2
tuple[Block, ...]
▼
def parse_html_only(tokens: list, parse_inline_fn: Callable) -> tuple[Block, ...]
Pattern 3: (HTML_BLOCK,) - 3.7% of examples.
Just HTML blocks, no other content.
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
|
parse_inline_fn |
Callable |
Returns
tuple[Block, ...]
parse_atx_only
2
tuple[Block, ...]
▼
Pattern 9: (ATX_HEADING,) - 2.1% of examples.
Just ATX headings, no other cont…
parse_atx_only
2
tuple[Block, ...]
▼
def parse_atx_only(tokens: list, parse_inline_fn: Callable) -> tuple[Block, ...]
Pattern 9: (ATX_HEADING,) - 2.1% of examples.
Just ATX headings, no other content.
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
|
parse_inline_fn |
Callable |
Returns
tuple[Block, ...]
parse_indented_only
2
tuple[Block, ...]
▼
Pattern 10: (INDENTED_CODE,) - 2.0% of examples.
Just indented code blocks, no…
parse_indented_only
2
tuple[Block, ...]
▼
def parse_indented_only(tokens: list, parse_inline_fn: Callable) -> tuple[Block, ...]
Pattern 10: (INDENTED_CODE,) - 2.0% of examples.
Just indented code blocks, no other content.
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
|
parse_inline_fn |
Callable |
Returns
tuple[Block, ...]
parse_fenced_code_only
2
tuple[Block, ...]
▼
Pattern 7: (FENCED_CODE_*) - 2.9% of examples.
Just fenced code blocks, no oth…
parse_fenced_code_only
2
tuple[Block, ...]
▼
def parse_fenced_code_only(tokens: list, parse_inline_fn: Callable) -> tuple[Block, ...]
Pattern 7: (FENCED_CODE_*) - 2.9% of examples.
Just fenced code blocks, no other content.
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
|
parse_inline_fn |
Callable |
Returns
tuple[Block, ...]
parse_paragraphs_with_blanks
2
tuple[Block, ...]
▼
Pattern 6: (BLANK_LINE, PARAGRAPH_LINE) - 3.1% of examples.
Paragraphs separat…
parse_paragraphs_with_blanks
2
tuple[Block, ...]
▼
def parse_paragraphs_with_blanks(tokens: list, parse_inline_fn: Callable) -> tuple[Block, ...]
Pattern 6: (BLANK_LINE, PARAGRAPH_LINE) - 3.1% of examples.
Paragraphs separated by blank lines.
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
|
parse_inline_fn |
Callable |
Returns
tuple[Block, ...]
parse_simple_flat_list
2
tuple[Block, ...]
▼
Pattern 4: (LIST_ITEM_MARKER, PARAGRAPH_LINE) - 3.5% of examples.
Simple flat …
parse_simple_flat_list
2
tuple[Block, ...]
▼
def parse_simple_flat_list(tokens: list, parse_inline_fn: Callable) -> tuple[Block, ...]
Pattern 4: (LIST_ITEM_MARKER, PARAGRAPH_LINE) - 3.5% of examples.
Simple flat list with no nesting, no blank lines.
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
|
parse_inline_fn |
Callable |
Returns
tuple[Block, ...]
parse_simple_list_with_blanks
2
tuple[Block, ...]
▼
Pattern 8: (BLANK_LINE, LIST_ITEM_MARKER, PARAGRAPH_LINE) - 2.3%.
List with bl…
parse_simple_list_with_blanks
2
tuple[Block, ...]
▼
def parse_simple_list_with_blanks(tokens: list, parse_inline_fn: Callable) -> tuple[Block, ...]
Pattern 8: (BLANK_LINE, LIST_ITEM_MARKER, PARAGRAPH_LINE) - 2.3%.
List with blank lines (loose list).
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
|
parse_inline_fn |
Callable |
Returns
tuple[Block, ...]
get_pattern_parser
1
Callable | None
▼
Get specialized parser for token pattern if available.
get_pattern_parser
1
Callable | None
▼
def get_pattern_parser(tokens: list) -> Callable | None
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
Token list from lexer |
Returns
Callable | None