Functions
is_simple_block_quote
2
bool
▼
Check if the block quote starting at start_pos meets simple criteria.
is_simple_block_quote
2
bool
▼
def is_simple_block_quote(tokens: list, start_pos: int) -> bool
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
Full token list |
start_pos |
int |
Position of first BLOCK_QUOTE_MARKER token |
Returns
bool
parse_simple_block_quote
3
tuple[BlockQuote, int]
▼
Parse a simple block quote using the fast path.
parse_simple_block_quote
3
tuple[BlockQuote, int]
▼
def parse_simple_block_quote(tokens: list, start_pos: int, parse_inline_fn) -> tuple[BlockQuote, int]
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
list |
Full token list |
start_pos |
int |
Position of first BLOCK_QUOTE_MARKER token |
parse_inline_fn |
— |
Function to parse inline content: (text, location) -> tuple[Inline, ...] |
Returns
tuple[BlockQuote, int]