Footnote in figure caption is rendered incorrectly #8021
-
ContextNo response Bug descriptionFootnote in figure caption is rendered incorrectly index.md # Welcome to MkDocs
<figure markdown>
{ width="300" }
<figcaption>Image caption[^1]</figcaption>
</figure>
[^1]: Image source mkdocs.yml site_name: My Docs
theme:
name: material
plugins:
- info
markdown_extensions:
- attr_list
- footnotes
- md_in_html
- pymdownx.blocks.caption Related linksReproduction9.6.5-footnotes_in_caption.zip Steps to reproduce
BrowserNo response Before submitting
|
Beta Was this translation helpful? Give feedback.
Answered by
kamilkrzyskow
Feb 20, 2025
Replies: 1 comment 1 reply
-
Hello @SerTetora, <figure markdown>
<figcaption>Image caption[^1]</figcaption> -> <figure markdown>
<figcaption markdown>Image caption[^1]</figcaption> Each tag in the "chain" needs to be marked as Markdown content, otherwise, HTML tags inside of HTML-markdown tags are rendered as raw HTML not Markdown. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SerTetora
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @SerTetora,
this is not a bug, so I'll convert it to a discussion.
The issue is that you're missing the
markdown
attribute in thefigcaption
:->
Each tag in the "chain" needs to be marked as Markdown content, otherwise, HTML tags inside of HTML-markdown tags are rendered as raw HTML not Markdown.