Skip to content

[Bug]: Footnotes are broken whe used in figure captions. #2742

@quasipedia

Description

@quasipedia

Issue Check

  • I have checked existing Issues and I feel this bug has not been raised

Hugo Version Check

  • My Hugo version is within the supported range

Describe the Bug

When used in the caption text of the {{<figure>}} shortcode, the footnote syntax [^7] is not parsed by rendered literally.

Image

To Reproduce

Create a footnote in the caption field of the {{<figure>}} shortcode.

Expected Behaviour

The footnote is rendered correctly with supertect as in this example:

Image

Screenshots

No response

Platform

  • OS: Fedora 43
  • Browser: Firefox
  • Version: 147.0

Hugo Version

hugo v0.152.2+extended linux/amd64 BuildDate=2025-12-14T00:00:00+00:00 VendorInfo=Fedora:0.152.2-1.fc43

Blowfish Version

Not sure how I can check that information (maybe add it to the template for bug reporting as you did it for hugo?).

But the commit linked in my site repo is: Subproject commit 9f2045746e83af34b9ead2aef38c8eafa10b592b (I updated one our ago)

Additional Context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions