Skip to content

Commit ac11970

Browse files
committed
fix: Restore full cross-refs paths on hover
1 parent 885696e commit ac11970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/expression.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
{%- elif original_expression is string -%}
77
{{ original_expression }}
88
{%- else -%}
9-
<span data-autorefs-optional="{{ original_expression.full }}">{{ original_expression.source }}</span>
9+
<span data-autorefs-optional{% if original_expression.full != original_expression.source %}-hover{% endif %}="{{ original_expression.full }}">{{ original_expression.source }}</span>
1010
{%- endif -%}

0 commit comments

Comments
 (0)