blob: c6146429ea02dc31a1c61f993b7ceda284f0869d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from collections.abc import Sequence
from typing import Any, Callable, Optional, Tuple, NamedTuple
from markdown_it.token import Token
OptionLoc = str | dict[str, str]
Option = dict[str, str | dict[str, str] | list[OptionLoc]]
class RenderedOption(NamedTuple):
loc: list[str]
lines: list[str]
links: Optional[list[str]] = None
RenderFn = Callable[[Token, Sequence[Token], int], str]
|