We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ccb1a5 commit 1976ea1Copy full SHA for 1976ea1
inyoka/markup/macros.py
@@ -249,10 +249,7 @@ def build_node(self, tree):
249
250
# in all cases we need to add the current headline to the children
251
# 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)]
+ caption = [nodes.Text(headline.text)]
256
link = nodes.Link('#' + headline.id, caption)
257
stack[-1].children.append(nodes.ListItem([link]))
258
0 commit comments