kaushalmodi / ox-hugo

A carefully crafted Org exporter back-end for Hugo
https://ox-hugo.scripter.co
GNU General Public License v3.0
867 stars 130 forks source link

Images numbering stops working after second image #686

Open finex opened 1 year ago

finex commented 1 year ago

Hi, I'm experiencing a strange behavior exporting to markdown using ox-hugo: when I put more than two images on a post, the first two does have the correct numbering ("figure 1" and "figure 2"), from the third image, all captions are "figure 1".

I've copied the same image three times, one after each other on a clean org file and the result is wrong.

This is the example of image code I'm using:

#+ATTR_HTML: :title Image title :alt Alternative text
#+CAPTION: This is a caption sample
[[file:images/image.jpg]]

I'm using a single .org file and each post is exported on a bundle page. Let me know if you need more details to debug the problem.

Thank you.

kaushalmodi commented 1 year ago

Hello, this is fixed in the bugfix branch of Org mode after I reported it to the mailing list: https://lists.gnu.org/r/emacs-orgmode/2022-12/msg00333.html.

But unfortunately, this fix hasn't yet been released in the Org version on Elpa. I have requested the Org team to release a new version and then this issue should be fixed.


Note to self: Revisit this once Org 9.6.1 is released: https://lists.gnu.org/r/emacs-orgmode/2023-01/msg00275.html