fix: update section_url for proper reference to the same file
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user