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
+4 -1
View File
@@ -41,13 +41,16 @@ class Bibliography(Renderable):
@staticmethod
def _make_entry(parent: Parented, e: BiblioEntry) -> Paragraph:
from .bibliography import biblio_bookmark_name
p = Paragraph(parent)
try:
p.style = "Bibliography"
except KeyError:
pass
# Avoid hyphen-splitting URLs: put whole entry in one run via direct text
run = p._docx_paragraph.add_run(f"{e.key}. {e.text}")
p._docx_paragraph.add_run(f"{e.key}. {e.text}")
p.wrap_with_bookmark(biblio_bookmark_name(e.key))
return p
def render(self, previous_rendered: RenderedInfo, layout_state: LayoutState) -> Generator[