diff --git a/sphinx_design/cards.py b/sphinx_design/cards.py index 96d0e33..7ff901a 100644 --- a/sphinx_design/cards.py +++ b/sphinx_design/cards.py @@ -140,6 +140,7 @@ def create_card( textnodes, _ = inst.state.inline_text(arguments[0], inst.lineno) title_container = PassthroughTextElement() title_container.extend(textnodes) + inst.set_source_info(title_container) title.append(title_container) body.insert(0, title) container.append(body)