emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] ox-md image captions


From: Vladimir Alexiev
Subject: [BUG] ox-md image captions
Date: Mon, 27 Feb 2023 12:02:06 +0200

I have an image caption like this:

#+label: fig:bsdd-graphql-voyager-refact-detail
#+caption: Refactored bSDD GraphQL Schema
[[./img/bsdd-graphql-voyager-refact-Classification-ClassificationProperty.png]]

ox-md exports it like this:

![img](./img/bsdd-graphql-voyager-refact-Classification-ClassificationProperty.png "Refactored bSDD GraphQL Schema")

(see https://git.sr.ht/~bzg/org-mode/tree/main/item/lisp/ox-md.el#L595)

However, pandoc expects image captions to be formatted like this:

![Refactored bSDD GraphQL Schema](./img/bsdd-graphql-voyager-refact-Classification-ClassificationProperty.png)

(see https://pandoc.org/MANUAL.html#images).
Consequently, all my captions are lost and replaced with "img".

Maybe ox-md should emit captions in both places?

![caption](image-url "caption")

Note: I checked, ox-gfm doesn't do anything different regarding image captuions

---

[9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Emacs/share/emacs/28.1/lisp/org/)]
Emacs  : GNU Emacs 28.1 (build 52, x86_64-w64-mingw32) of 2022-04-04
Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Emacs/share/emacs/28.1/lisp/org/)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]