fix: update section_url for proper reference to the same file

This commit is contained in:
Lars Weiler
2026-01-06 14:22:22 +01:00
committed by Lars Weiler
parent 29738a6d33
commit b2f834df44
2 changed files with 16 additions and 2 deletions
+5
View File
@@ -37,6 +37,7 @@ class FiftyOhmHtmlRenderer(HtmlRenderer):
edition=None,
chapter=None,
section=None,
section_url=None,
**kwargs,
):
super().__init__(
@@ -75,6 +76,10 @@ class FiftyOhmHtmlRenderer(HtmlRenderer):
self.chapter = chapter
self.section = section
# Set section URL if provided, otherwise use default
if section_url is not None:
self.section_url = section_url
# Figure map: stores ref -> hierarchical number mapping
self.figure_map = {}