-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Describe the problem
I have a re-work of the Jupyter Book homepage here:
jupyter-book/jupyter-book#1442
However, I discovered that links in card titles don't seem to be rendered. For example, here's an example of some non-link + link text in a card title:
relevant MD here:
:::{grid-item-card} **TEST** [Publication-quality content](file-types:markdown) ✍
Write in either Jupyter Markdown, MyST Markdown for more [publishing features](content/myst), [reStructuredText](file-types:rst), [Jupyter Notebooks](file-types:notebooks), or [any Jupytext format](file-types:custom).
Includes support for rich syntax such as [citations and cross-references](content/citations), [math and equations](content/math), and [figures](content/figures).
:::
and it is rendered like this:
Link to your repository or website
Check out the preview in jupyter-book/jupyter-book#1442
Steps to reproduce
Go to jupyter-book/jupyter-book#1442
Click on the preview
Look at the cards, notice that only the emojis are displayed in title, not links
Extra info
I know that you can turn the whole card into a clickable link, but I don't want to do that here because there are multiple links within the card body as well.
I think that the fix for this would be somewhere around:
sphinx-design/sphinx_design/cards.py
Line 136 in 9226a12
| textnodes, _ = inst.state.inline_text(arguments[0], inst.lineno) |
