# Copyright (c) 2026 Chris Pressey, Cat's Eye Technologies
# This file is distributed under an MIT license. See LICENSES/ directory.
# SPDX-License-Identifier: LicenseRef-MIT-X-Feedmark
from marko.element import Element
from .models import Document
def strip_square_brackets(s: str) -> str: ...
def has_image_child(element: Element) -> bool: ...
def is_image_paragraph(element: Element) -> bool: ...
def obtain_heading_text(element: Element) -> str: ...
class Parser:
def __init__(self) -> None: ...
def parse(self, markdown_text: str, filename: str | None = None) -> Document: ...