Skip to content

Is writing math in <figcaption> supported? #132

@nucflash

Description

@nucflash

Summary

I want to write math in <figcaption> but it doesn't get rendered. I wonder if it supported at all.

Expected behavior

I expect to see rendered math

Actual behavior

I see the commands I use to type math instead.

Steps to reproduce

  1. Use the <figure> example in the HTML sample of mdmath
  2. Add to the caption: c $a$ c. Save and compile
  3. Observe that $a$ is not rendered in LaTeX.

Code example

<figure>
  <img src="./img/triangle.png">
  <figcaption>Fig 1: The right triangle c $a$ c</figcaption>
</figure>
     Operating system: macOS 14.5 (Sonoma)
       VSCode version: 1.91.1
Markdown+Math version: 2.7.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions