MCPcopy Create free account
hub / github.com/Overv/VulkanTutorial / adjust_title_depth

Function adjust_title_depth

build_ebook.py:114–115  ·  view source on GitHub ↗
(match: Match)

Source from the content-addressed store, hash-verified

112 if chapter.depth > 0:
113
114 def adjust_title_depth(match: Match) -> str:
115 return ("#" * chapter.depth) + match.group(0)
116
117 contents = re.sub(r"#+ ", adjust_title_depth, contents)
118

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected