blob: a560a28336287926f1ae483d169d6d5fb12f510c [file] [log] [blame]
from typing import List, MutableMapping, Optional, TYPE_CHECKING
from ..token import Token
from ..ruler import StateBase
if TYPE_CHECKING:
from markdown_it import MarkdownIt
class StateCore(StateBase):
def __init__(
self,
src: str,
md: "MarkdownIt",
env: MutableMapping,
tokens: Optional[List[Token]] = None,
):
self.src = src
self.md = md # link to parser instance
self.env = env
self.tokens: List[Token] = tokens or []
self.inlineMode = False