From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OL19Iw+A/GO2XQEAbAwnHQ (envelope-from ) for ; Mon, 27 Feb 2023 11:03:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2CdaIw+A/GPz9gAAauVa8A (envelope-from ) for ; Mon, 27 Feb 2023 11:03:59 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2DECE15ED4 for ; Mon, 27 Feb 2023 11:03:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWaL1-0000Lt-Cs; Mon, 27 Feb 2023 05:02:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWaKu-0000Gf-0R for emacs-orgmode@gnu.org; Mon, 27 Feb 2023 05:02:25 -0500 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWaKr-0005bh-GT for emacs-orgmode@gnu.org; Mon, 27 Feb 2023 05:02:23 -0500 Received: by mail-pg1-x536.google.com with SMTP id y19so3198263pgk.5 for ; Mon, 27 Feb 2023 02:02:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ontotext.com; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=2BQW/STCJOT5U8JXkRDzcr3Ltmk2d4fwcK0S9fx+WbQ=; b=W+ep0/ZERonWsyvtoGag6sZZapVw9iXSK/PGQzW4D+81nVm8gIUg9LF7BEyUCKLizk QEIouX5XucTDRRxMIZiMZSuRs5MwyKHjmKDhHCcTH2MZWn7ReyyIysJtlonulmKKy0Hn TurYbW9BuVO3s264Dhu5Z08lQUpC807TwbZcSsQ8zrE7icLeuB0F5JdJEq41NQRGN2iL TTk4iX/nOYV7Xr4+HWrC8q+XXwNAmT9w1Xcv1XQLb7FfkDgRyL4XBp1kMBndu349Wdwv nPv5dIZ21zgG7vxawjmTgaFJVBfLrW4G+ygnxre9j9GK8AC1wbXf2+puDd1hr9vplOxR 1OCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2BQW/STCJOT5U8JXkRDzcr3Ltmk2d4fwcK0S9fx+WbQ=; b=KSYjIlce+mT9ij3J1TyQuOtxc+ArSx+yT2W9R0uXjdiJjds9P3g4gw5tiG/zeKGsZr 0JUs7ECR8tiWD6kcP5UOq4VEOn3d/ncSPIiDlybXRQu+W3MIliUJf1pOiXYW+VQF87K4 G6gTZ8N4AWQq21puHK4S7btroxKLHrpnXhOpXGMda1LiHShnRJjZ3qWJGG+TrU9pqYre yM4Diqyak56WvPjesz+j61wgC+rvDTxXtITYyVc3T9tT82QvL2+jj7OJZboAbKplSR3v mS6NZOsDSQi2GqBFrJrp8yIpF3rQB7TcanttW8M3ZDeakArevbdzH87foMc02X8VX+Dg VeNg== X-Gm-Message-State: AO0yUKXeIn7RjnZctDSiGfDWSRD77Gxgo2V3tcWOu/NSJNu4DN2xBjcS rFX1OGmUrBvXdYsDola92M9+jNdjF+pV/HFoYsiqDiMPFdsJ1wJMpbE= X-Google-Smtp-Source: AK7set+uzxNfEeIaeag1ITCc9c4ioYiZSPjZaFKp2BSWgtPy71gVMBjq6I4s8ODyJf+3edoKZYwi1+sBmjzXc1ncjQw= X-Received: by 2002:a63:3c4e:0:b0:4d9:8f44:e1d7 with SMTP id i14-20020a633c4e000000b004d98f44e1d7mr5043018pgn.4.1677492138621; Mon, 27 Feb 2023 02:02:18 -0800 (PST) MIME-Version: 1.0 From: Vladimir Alexiev Date: Mon, 27 Feb 2023 12:02:06 +0200 Message-ID: Subject: [BUG] ox-md image captions To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000000958dd05f5ab9399" Received-SPF: permerror client-ip=2607:f8b0:4864:20::536; envelope-from=vladimir.alexiev@ontotext.com; helo=mail-pg1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677492239; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2BQW/STCJOT5U8JXkRDzcr3Ltmk2d4fwcK0S9fx+WbQ=; b=TfYTOmljTOzK6sCywVdhBp+52Q1XOc4y9ktNEimgEBiJZkTYPyyn8NAIcXykGodVZegQJ4 TQZp5b2Vi89KX37CfLqd5KJqWngzETZT7Tvr2mI2phXBUjo42XmhVzEJrmGay1zFobFTaV V8CxbwASrQ7MCop2UDGXsh70DTdl5xoW14APWTZC4B1k0zXOpAZa+BhGTajll1fazZcem1 NSMq4lTSZQW0b4ChYCZg3MYgOqfGZXwsY9ETpKF92K1CD6LOAcgfd+mLlDgH2Kr8lswRU4 QX9ufAD+SNTJ0TeOmlTAapMopd5sdGpNSYCbSJxLqtmKMpVysNP3tPXQiKffKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ontotext.com header.s=google header.b="W+ep0/ZE"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=ontotext.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677492239; a=rsa-sha256; cv=none; b=krFSBQP7i3SZILYRnbg/t2mMikcFbZrGxYnw7knVM7GXaP580S36ijvT4Z+QxynuLHK3eT u+VYv1ez43SRdp2oJZGEkuiCjgmpLOiB4tOag1e4SyTMeg2Vmv/xEzW2sXIPs0LtKW2TBK HUkCN/IpZOa/yvRwCuO3LjBbtooX9/bjDVMyB+0tin6tqcVYR11VWv+JWk4O20ksE6S912 WFD0m6rSlsGMvlccg4YmIn9AFwNEdPZyd6XGf+KGoQmekQ60Lv/WaEiatXnKdDiwWIL1+E wKZkDOErSl0ShW9EAu2k8L7nCxk8bIFNXHc+3t9/vw6qqotRbQ5AavvPdv9JnA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.42 X-Spam-Score: -3.42 X-Migadu-Queue-Id: 2DECE15ED4 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ontotext.com header.s=google header.b="W+ep0/ZE"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=ontotext.com X-TUID: hfB3nccgw1r6 --0000000000000958dd05f5ab9399 Content-Type: text/plain; charset="UTF-8" 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/) --0000000000000958dd05f5ab9399 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have an image caption like this:

#+label: fig:bsd= d-graphql-voyager-refact-detail
#+caption: Refactored bSDD GraphQL Schem= a
[[./img/bsdd-graphql-voyager-refact-Classification-ClassificationPrope= rty.png]]

ox-md exports it like this:

![img](./img/bsdd-graph= ql-voyager-refact-Classification-ClassificationProperty.png "Refactore= d bSDD GraphQL Schema")

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

However, pandoc expects imag= e captions to be formatted like this:

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

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

Maybe ox-md should emit capti= ons 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/sha= re/emacs/28.1/lisp/org/)]
Emacs =C2=A0: 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/)

--0000000000000958dd05f5ab9399--