Skip to content

Commit 60b993f

Browse files
authored
🐛 FIX: Exception on missing card link (#60)
1 parent f452be7 commit 60b993f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sphinx_design/cards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def create_card(
176176
"refexplicit": True,
177177
"refwarn": True,
178178
}
179-
link = addnodes.pending_xref("", nodes.Text(""), **options)
179+
link = addnodes.pending_xref("", nodes.inline(), **options)
180180
inst.set_source_info(link)
181181
link_container += link
182182
container.append(link_container)

tests/test_snippets/snippet_pre_card-link.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@
3030
reference target.
3131
<PassthroughTextElement>
3232
<pending_xref classes="sd-stretched-link" refdoc="index" refdomain="std" refexplicit="True" reftarget="cards-clickable" reftype="ref" refwarn="True">
33+
<inline>

0 commit comments

Comments
 (0)