Files
Igor20264 f7136bd8bd
Example document / build (push) Has been cancelled
Python application / build (push) Has been cancelled
v0.5.3
- Мелкие исправления увеличивающие работу конвертера
2026-09-10 10:50:15 +03:00

43 lines
1012 B
Python

"""
Shared AST-walking building blocks for the md2gost export backends.
`md2latex` and `md2fodt` consume the same extended-markdown AST produced by
`md2gost.extended_markdown` and differ only in how each node is serialised.
This package holds the traversal and the backend-independent parsing so the
two emitters keep only their formatting code.
"""
from .blocks import (
BlockVisitor,
PendingCaption,
caption_tuple,
is_contents_heading,
match_bibliography,
parse_image_caption,
walk_blocks,
walk_paragraph,
)
from .inline import (
REFERENCE_FULL_NAMES,
InlineRenderer,
reference_full_name,
render_inline,
)
from .labels import sanitize_label
__all__ = [
"REFERENCE_FULL_NAMES",
"BlockVisitor",
"InlineRenderer",
"PendingCaption",
"caption_tuple",
"is_contents_heading",
"match_bibliography",
"parse_image_caption",
"reference_full_name",
"render_inline",
"sanitize_label",
"walk_blocks",
"walk_paragraph",
]