Skip to content

Hyperlinks in table headings don't have formatting #4327

@ajh0912

Description

@ajh0912

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Hyperlinks in the heading of a data tables (including footnotes) don't look like hyperlinks, but do function as a hyperlink.

Expected behaviour

Hyperlinks in the heading should be formatted blue in this case.
Example with MkDocs:
image

Actual behaviour

Hyperlinks (and footnotes) in the heading look like normal text (although are bolded due to being in a heading)
image

Steps to reproduce

test.md:

---
hide:
  - toc
  - navigation
---

# Test

| Method[^1] | Description[^2]                      | [This doesn't look like a link][Example Link 1] |
| ---------- | ------------------------------------ | ----------------------------------------------- |
| `GET`      | :material-check:     Fetch resource  | [This looks like a link][Example Link 1]        |
| `PUT`      | :material-check-all: Update resource |                                                 |
| `DELETE`   | :material-close:     Delete resource |                                                 |

These[^1] footnotes look like links when not used in a heading[^2] of a table

[^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.

[^2]:
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
    nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
    massa, nec semper lorem quam in massa.

[Example Link 1]: https://example.com/1

Package versions

  • Python: Python 3.9.13
  • MkDocs: mkdocs, version 1.3.0
  • Material: Version: 8.4.2+insiders.4.22.0

Configuration

site_name: Test Docs
markdown_extensions:
  - footnotes
  - pymdownx.emoji:
      emoji_index: !!python/name:materialx.emoji.twemoji
      emoji_generator: !!python/name:materialx.emoji.to_svg

System information

  • Operating system: macOS 12.4
  • Browser: Firefox 104.0.1, Safari 15.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions