- Add\Rework UI - Add Split Table and Listing - Add Support Customazeble schems
This commit is contained in:
@@ -116,7 +116,12 @@ class ToC(Renderable):
|
||||
continue
|
||||
|
||||
display = title.strip()
|
||||
if display.upper() in SPECIAL_TITLES or display.upper().startswith("ПРИЛОЖЕНИЕ"):
|
||||
# Special sections and numbered H1 → uppercase in TOC (method guide)
|
||||
if (
|
||||
display.upper() in SPECIAL_TITLES
|
||||
or display.upper().startswith("ПРИЛОЖЕНИЕ")
|
||||
or (level == 1 and numbered)
|
||||
):
|
||||
display = display.upper()
|
||||
|
||||
p.add_run(" " * (level - 1))
|
||||
|
||||
Reference in New Issue
Block a user