0
      ˆÂ‘äÇò 8à#’¿+¡(?ŸÁƒh¹À¿¾  5   ˆl–ß=¿Jõ4Ÿº‚ œPLÜ. JbÑ¿�þB g ßnI\œgùÂƒh¹ÁÀ¿      0
      disabled
     ˆ¾�þB g ßnI\ ˆÏóÂƒh¹ÁÀ¿      0
     	ˆ¾�þB g ßnI[•‘3üÿÂƒh¹ÁÀ¿      	0
      ˆÃ‘äÇò 8à#’ŒO•Ç?ŸÂƒh¹ÁÀ¿      1
  5   ˆl–Ðz¾”*i?u8 ¸Ûwâ˜´o�þB gHQˆ2µ#ÿÏÃƒh¹ÂÁÀ      disabled
      ˆÄ‘äÇò 8à#’�·$ÏÃƒh¹ÂÁÀ      disabled
      ˆÄ‘äÇò 8à#’�Éx¿ÏÃƒh¹ÂÁÀ      disabled
  N   ˆl–Ðz¾”*i?u8 ¸È®2ê˜´o‘äÇò 8à#’�æc”ÏÄƒh¹Ãa–Ðz¾”*i?u8 ¸È®2ê˜´oÂ      disabled
  N   ˆl–Ðz¾”*i?u8 ¸È®4â˜´o‘äÇò 8à# eÇ…#_ÏÆƒh¹Åa–Ðz¾”*i?u8 ¸È®4â˜´oÄ      disabled
  B   ˆl–Ðz¾”Šj"Tâ‚À½q¶”Å£�þBì¥YÆÊFãt2=+ÀþÈƒp-Ç_ŠI|¥�+Wé3ž¯ÀÆ þ    from __future__ import annotations

from collections.abc import Callable, Iterable, MutableMapping
from collections.abc import MutableMapping as MutableMappingABC
from pathlib import Path
from typing import TYPE_CHECKING, Any, TypedDict, cast

if TYPE_CHECKING:
    from typing_extensions import NotRequired


EnvType = MutableMapping[str, Any]  # note: could use TypeAlias in python 3.10
"""Type for the environment sandbox used in parsing and rendering,
which stores mutable variables for use by plugins and rules.
"""


class OptionsType(TypedDict):
    """Options for parsing."""

    maxNesting: int
    """Internal protection, recursion limit."""
    html: bool
    """Enable HTML tags in source."""
    linkify: bool
    """Enable autoconversion of URL-like texts to links."""
    typographer: bool
    """Enable smartquotes and replacements."""
    quotes: str
    """Quote characters."""
    xhtmlOut: bool
    """Use '/' to close single tags (<br />)."""
    breaks: bool
    """Convert newlines in paragraphs into <br>."""
    langPrefix: str
    """CSS language prefix for fenced blocks."""
    highlight: Callable[[str, str, str], str] | None
    """Highlighter function: (content, lang, attrs) -> str."""
    store_labels: NotRequired[bool]
    """Store link label in link/image token's metadata (under Token.meta['label']).

    This is a Python only option, and is intended for the use of round-trip parsing.
    """
    tasklists: NotRequired[bool]
    """Enable GFM task list checkbox detection in list items."""
    alerts: NotRequired[bool]
    """Enable GitHub-style alert detection in blockquotes."""
    tasklists_editable: NotRequired[bool]
    """When True, rendered task list checkboxes are interactive (no disabled attribute)."""
    strikethrough_single_tilde: NotRequired[bool]
    """Allow single tilde ``~text~`` for strikethrough in addition to double."""


class PresetType(TypedDict):
    """Preset configuration for markdown-it."""

    options: OptionsType
    """Options for parsing."""
    components: MutableMapping[str, MutableMapping[str, list[str]]]
    """Components for parsing and rendering."""


class OptionsDict(MutableMappingABC):  # type: ignore
    """A dictionary, with attribute access to core markdownit configuration options."""

    # Note: ideally we would probably just remove attribute access entirely,
    # but we keep it for backwards compatibility.

    def __init__(self, options: OptionsType) -> None:
        self._options = cast(OptionsType, dict(options))

    def __getitem__(self, key: str) -> Any:
        return self._options[key]  # type: ignore[literal-required]

    def __setitem__(self, key: str, value: Any) -> None:
        self._options[key] = value  # type: ignore[literal-required]

    def __delitem__(self, key: str) -> None:
        del self._options[key]  # type: ignore

    def __iter__(self) -> Iterable[str]:  # type: ignore
        return iter(self._options)

    def __len__(self) -> int:
        return len(self._options)

    def __repr__(self) -> str:
        return repr(self._options)

    def __str__(self) -> str:
        return str(self._options)

    @property
    def maxNesting(self) -> int:
        """Internal protection, recursion limit."""
        return self._options["maxNesting"]

    @maxNesting.setter
   