Skip to content

Commit 1976ea1

Browse files
committed
Table of contents: Dont strip long heading text
1 parent 6ccb1a5 commit 1976ea1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

inyoka/markup/macros.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,7 @@ def build_node(self, tree):
249249

250250
# in all cases we need to add the current headline to the children
251251
# of recent stack element
252-
ml = 42 - (headline.level - 1) * 2
253-
text = len(headline.text) > ml and headline.text[:ml] + '...' or \
254-
headline.text
255-
caption = [nodes.Text(text)]
252+
caption = [nodes.Text(headline.text)]
256253
link = nodes.Link('#' + headline.id, caption)
257254
stack[-1].children.append(nodes.ListItem([link]))
258255

0 commit comments

Comments
 (0)