Skip to content

Commit

Permalink
fix: Make card titles translatable (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney authored Dec 8, 2022
1 parent 42077cf commit 788acae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinx_design/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 788acae

Please sign in to comment.