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 oFy4Nhj8/GMNigAAbAwnHQ (envelope-from ) for ; Mon, 27 Feb 2023 19:53:12 +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 WI2dNhj8/GMXngAAauVa8A (envelope-from ) for ; Mon, 27 Feb 2023 19:53:12 +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 6EA5781DE for ; Mon, 27 Feb 2023 19:53:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWibj-0000aD-UB; Mon, 27 Feb 2023 13:52:19 -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 1pWibh-0000VJ-W5 for emacs-orgmode@gnu.org; Mon, 27 Feb 2023 13:52:18 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWibf-0008Rt-Ie for emacs-orgmode@gnu.org; Mon, 27 Feb 2023 13:52:17 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0A7272404C7 for ; Mon, 27 Feb 2023 19:52:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1677523933; bh=KYLkU5YgMdDwjpvOHsdAfrxFBnF97wjjhmtnvBQiB7U=; h=From:To:Cc:Subject:Date:From; b=oqqv2Cu2nWzbwyhilzN8Si1c1mN7bpcjKnS2SCvJOiFvHjHhBB0/mDUFWb8bL3RP4 h5PvrZGISxVB99WL05SCeQH97QMENyaZUUHS4Yjk1beccfsjsl+QYIOqhsyLWBsYAU kXSgTpnH7oXuArWk/ckjpNf5yBtc3DlCIDOayBAavAS3aa1lVWLj6jKjgEmGF026D5 yqkCxz2D5bIDrct7YfMcm5g0MVFQV7R1zjmHjigZuDRha6OtnozM0MSBxBLypUbtEj KoanyQHxdPdMzRgFr8HnJA2LGQSdApymwgjvrCvrZuG0qTd8tx6fTJT/gQBextGfPD 6JY7u73lYW9+Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PQV3Z4wQnz9rxP; Mon, 27 Feb 2023 19:52:10 +0100 (CET) From: Ihor Radchenko To: Vladimir Alexiev Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] ox-md image captions In-Reply-To: References: Date: Mon, 27 Feb 2023 18:52:49 +0000 Message-ID: <871qmbym7y.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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=1677523992; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JRivk5N/TbervQse9Vpntgo/uKSBpjEBwNFWvOEYtdw=; b=iGhr1upKx6zbwj5Ey6I4UAqGX2FuXCyQAOk/ot0DxI/N+uJJvOW+FQL6IT1vjozsMem8f9 RKanY5C1qkcoYZcgxyUl6L7cx4R3dvcbJ5bZNEpbSMJYLu8wDnkxkmbm2UevErQqA2MJFl FvXcAv2zPANPM48vcYfizq3x5Petfq8J5RvHuS0DVmyxxaBKC4Fr5RTOXpvh4QeGkmqPEj VKgGR9KVEhejaSW/3seoMZBNOGJ4w+ChkOv02u9TmmXLzzCnJW8EfC6iC4w8+nTybTeMmm dMCtaTWUuuzH0PEuoLxWQTbDkRIXtn80SZiGtULrPhnFJPe5kXkR7bHzv52CvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oqqv2Cu2; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677523992; a=rsa-sha256; cv=none; b=iTteyG2859BSK8Uid2Hc1gOCoGYhu+1jc81WBhm+sKDUtq5H30adH7pgfTcDhITQ5FbcW/ xeFpGQ/bFhfnFFMNsTt7mpAMu1Tz49913MtF1fg4UeH58XxgLVm2LqrxfzY8pJx5GD39Zt 0eH2OPxMVXtcnksNnQriCV+qvv1cscaYxREJCkwiK50zxpwD7qoL/NAHr8JwHUkXknIJL6 jd9craL5vUDnoGK06HmEtRegeO53Uy5ZageNow4lw8rjd4sVXUeKmhSwHncLvSboHKspb4 eIi+WIiRS00HiXbPH1Wb5OgJEd2IdhKXkxEv77CiheixG8uxsFmdBVBut9QnxA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.67 X-Spam-Score: -4.67 X-Migadu-Queue-Id: 6EA5781DE Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oqqv2Cu2; 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=posteo.net X-TUID: YL/PSQFcKtQi Vladimir Alexiev writes: > 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) The current ox-md's behaviour has been introduced in 87b48e5a2824: ox-md: Fix image transcoding * lisp/ox-md.el (org-md-link): Do not confuse caption and alt-text. Provide "img" as default alt-text. ... ... format "![img](%s)" ... However, looking at https://www.markdownguide.org/basic-syntax#adding-titles You can optionally add a title for a link. This will appear as a tooltip when the user hovers over the link. To add a title, enclose it in quotation marks after the URL. So, img is not really alt text, but the opposite. The commit appears to be inaccurate. I am inclined to change ![img](url "caption") to ![caption](url) for links without description (links with description do not obey caption in org export). Any objections? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at