mdmath icon indicating copy to clipboard operation
mdmath copied to clipboard

Is writing math in `<figcaption>` supported?

Open nucflash opened this issue 6 months ago • 0 comments

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

nucflash avatar Aug 03 '24 20:08 nucflash