BigUpdate 0.5.0
Python application / build (push) Has been cancelled

- add Local Render Mermaid
- add page-starе для указания смещения страниц
- add Гиперссылки в документе на списки литературы
This commit is contained in:
Igor20264
2026-09-07 09:54:33 +03:00
parent ac0aa33399
commit 1a5b35eb54
29 changed files with 4118 additions and 69 deletions
+17 -4
View File
@@ -37,10 +37,23 @@ class RenderableFactory:
classes = []
for child in children:
if isinstance(child, (extended_markdown.RawText, extended_markdown.Literal)):
paragraph_or_link.add_run(child.children,
is_bold=extended_markdown.StrongEmphasis in classes or None,
is_italic=extended_markdown.Emphasis in classes or None,
strike_through=extended_markdown.Strikethrough in classes or None)
text = child.children
if isinstance(paragraph_or_link, Paragraph) and hasattr(
paragraph_or_link, "add_run_with_citations"
):
paragraph_or_link.add_run_with_citations(
text,
is_bold=extended_markdown.StrongEmphasis in classes or None,
is_italic=extended_markdown.Emphasis in classes or None,
strike_through=extended_markdown.Strikethrough in classes or None,
)
else:
paragraph_or_link.add_run(
text,
is_bold=extended_markdown.StrongEmphasis in classes or None,
is_italic=extended_markdown.Emphasis in classes or None,
strike_through=extended_markdown.Strikethrough in classes or None,
)
elif isinstance(child, extended_markdown.CodeSpan):
paragraph_or_link.add_run(child.children, is_italic=True)
elif isinstance(child, extended_markdown.Image):