Skip to content

Links are not rendered in card titles #28

Closed

Description

@choldgraf

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:

https://github.com/executablebooks/jupyter-book/pull/1442/files#diff-22760d417a52c66f14bee182587d458d0737a616dd14cb09748b4c725fc5809fR33-R42

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:

image

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:

textnodes, _ = inst.state.inline_text(arguments[0], inst.lineno)

Activity

  1. added
    bug
    on Aug 26, 2021
  2. welcome commented on Aug 26, 2021

    @welcome

    Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

    If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

    If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

    Welcome to the EBP community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions