Skip to content

Commit 7a418c4

Browse files
committed
Update toc.py
1 parent 8afe4c2 commit 7a418c4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/Knowledge-Base.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Knowledge Base
22

33
Table of contents:
4-
* [Notifications about new releases / commits](#notifications-about-new-releases-commits)
4+
* [Notifications about new releases / commits](#notifications-about-new-releases--commits)
55
* [Changes in API after CEF updates](#changes-in-api-after-cef-updates)
66
* [Differences between Python 2 and Python 3](#differences-between-python-2-and-python-3)
77
* [Location of CEF framework in Mac apps](#location-of-cef-framework-in-mac-apps)

tools/toc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,13 @@ def headinghash(title):
168168
"""Get a link hash for a heading H1,H2,H3."""
169169
hash_ = title.lower()
170170
hash_ = hash_.replace(" - ", "specialcase1")
171+
hash_ = hash_.replace(" / ", "specialcase2")
171172
hash_ = re.sub(r"[^a-z0-9_\- ]+", r"", hash_)
172173
hash_ = hash_.replace(" ", "-")
173174
hash_ = re.sub(r"[-]+", r"-", hash_)
174175
hash_ = re.sub(r"-$", r"", hash_)
175176
hash_ = hash_.replace("specialcase1", "---")
177+
hash_ = hash_.replace("specialcase2", "--")
176178
return hash_
177179

178180

0 commit comments

Comments
 (0)