Skip to content

Commit

Permalink
fix: edit/preview: remove misplaced cursormagicword from toc
Browse files Browse the repository at this point in the history
  • Loading branch information
redimp committed Sep 10, 2024
1 parent 20a33d2 commit 1a91c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otterwiki/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def markdown(self, text, cursor=None):

# clean magicword out of toc
toc = [
(a, b.replace(cursormagicword, ""), c, d, e)
(a, b.replace(cursormagicword, ""), c, d.replace(cursormagicword, ""), e)
for (a, b, c, d, e) in toc
]

Expand Down

0 comments on commit 1a91c50

Please sign in to comment.