Skip to content

Commit 0e17bd1

Browse files
authored
Fix broken anchor tags in --pdf mode (#455)
original fix suggested by @LauraLMann in #389 (comment) Signed-off-by: Patrik Drozdík <[email protected]>
1 parent 96221e1 commit 0e17bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdoc/templates/pdf.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
%>
2828

2929
<%def name="title(level, string, id=None)">
30-
<% id = f' {{#id}}' if id is not None else '' %>
30+
<% id = f' {{#{id}}}' if id is not None else '' %>
3131
${('#' * level) + ' ' + string + id}
3232
</%def>
3333

0 commit comments

Comments
 (0)