Help with Obsidian-Latex-Css

Hy @phibr0
I found your css for latex pdf export (Obsidian LaTeX CSS Snippet) very useful. I am facing one issue though. All the images are numbered as ‘Image 1:’. The counter function is not working for me. I think this is the code for images,

.enhanced-images.image-alt-text span.image-embed {
    counter-increment: image;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.6em;
  }
  .enhanced-images.image-alt-text span.image-embed::after {
    content: "Image " counter(image) ": " attr(alt);
    text-align: center;
  }
  .enhanced-images.image-alt-text body {
    counter-reset: image;
  }

I am not able to figure out what is causing the counting function to break. Kindly Help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.