From 50897295963a2fb4d2f1dfa473903c636d0b56dd Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 7 Dec 2022 23:24:29 -0500 Subject: [PATCH] fix: Make card titles translatable --- sphinx_design/cards.py | 1 + 1 file changed, 1 insertion(+) 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)