Skip to content

Commit

Permalink
Fix broken anchor tags in --pdf mode (#455)
Browse files Browse the repository at this point in the history
original fix suggested by @LauraLMann in #389 (comment)

Signed-off-by: Patrik Drozdík <[email protected]>
  • Loading branch information
Patrik112358 authored Jan 8, 2025
1 parent 96221e1 commit 0e17bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdoc/templates/pdf.mako
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%>

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

Expand Down

0 comments on commit 0e17bd1

Please sign in to comment.