Skip to content

Commit

Permalink
HTML: Output .. image:: with loading=lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Dec 13, 2024
1 parent d9c0c40 commit 9acdc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdoc/html_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _admonition(match, module=None, limit_types=None):
'\n': ' ',
'[': '\\[',
']': '\\]'})).strip()
return f'{indent}![{alt_text}]({value})\n'
return f'{indent}![{alt_text}]({value}){{: loading=lazy}}\n'
if type == 'math':
return _ToMarkdown.indent(indent,
f'\\[ {text.strip()} \\]',
Expand Down

0 comments on commit 9acdc1d

Please sign in to comment.