Skip to content

Commit 1a91c50

Browse files
committed
fix: edit/preview: remove misplaced cursormagicword from toc
1 parent 20a33d2 commit 1a91c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

otterwiki/renderer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def markdown(self, text, cursor=None):
233233

234234
# clean magicword out of toc
235235
toc = [
236-
(a, b.replace(cursormagicword, ""), c, d, e)
236+
(a, b.replace(cursormagicword, ""), c, d.replace(cursormagicword, ""), e)
237237
for (a, b, c, d, e) in toc
238238
]
239239

0 commit comments

Comments
 (0)