From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kKW3OqFBMWR8sQAASxT56A (envelope-from ) for ; Sat, 08 Apr 2023 12:27:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OMvBOqFBMWSBMgAA9RJhRA (envelope-from ) for ; Sat, 08 Apr 2023 12:27:45 +0200 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 C8D09969C for ; Sat, 8 Apr 2023 12:27:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pl5mq-0001YY-GE; Sat, 08 Apr 2023 06:27:12 -0400 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 1pl5mo-0001YK-Ug for emacs-orgmode@gnu.org; Sat, 08 Apr 2023 06:27:10 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pl5mn-0000ld-5Y for emacs-orgmode@gnu.org; Sat, 08 Apr 2023 06:27:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B84D224015F for ; Sat, 8 Apr 2023 12:27:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680949627; bh=EjuXhH79SCIhVq7Ee5L5M0o+US8OiAgrZkv9hZimW1Q=; h=From:To:Cc:Subject:Date:From; b=ZhmAM009Ks8Wk5KHwORs09ZDFya3umoifwqlOv5SCegcIupGVAIqsCfB86ptD9CsS vtj9S4MXAK4TqgnaZ1Y5/cyp2v8ODigPwJ6FwCTdnmT4zhPysQ7+VCUIGrBVJUZrfC YECVqWSj5CPCsKOPGZOBIpRHAU9lphDUK3EmgWNIxIvSAC8PlFw3Wy4nmC7h0u6kNQ igypPhgWVWgaq+TF4kAkh+ZqM/RUL+43sQ7N66rrixKc+14mL13WkD3ln8IgQzQ1mv bcqEsa3zRojI07Fi+C0H/yoUXGnoI2xkz3BPIFUGI84C6KrtBSxV4yCFj0tqK5swjk nR2VhzLy28AzA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PtryM2486z9rxN; Sat, 8 Apr 2023 12:27:07 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: Vladimir Alexiev , emacs-orgmode@gnu.org Subject: Re: [BUG] ox-md image captions In-Reply-To: References: <871qmbym7y.fsf@localhost> <87a5zoav86.fsf@localhost> <871qkzl9j2.fsf@localhost> <5e277449-fed7-7306-d599-b695eaa6d993@gmail.com> Date: Sat, 08 Apr 2023 10:29:28 +0000 Message-ID: <87pm8ek6pj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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-Seal: i=1; s=key1; d=yhetil.org; t=1680949665; a=rsa-sha256; cv=none; b=OT7Eq8eNnd0mOePHXnvZgU2lJw2ePpGx5WNmbkhR2x0cQhLouTbanJAZao0QZueEIyz1pd lcAkia1Z0EK6u90Bz81/B1aJWaBJ/ukwL7pTaZkmhv0iNHuWBcwZ9+/k8n45z6te5ub8V3 dsmg0Q+AXmN83lOXvGLUyRqZiV+l+LYCs5Ku/nXFGQSWy0DRWNtxpEQiam2HLuR6KXkD9W 0xgBTC1ORK6AmRNfkXXhqFUUt6KiyQbb5r+PUGg/jv7gCmTHP6lH4Dic5kYrgo3uFLT8ik +Gxo/4JHARjQIgMPDqnSCcsx5ZTYMLj75GpCbWFypWH0R+7k67mkeWPdB/WOaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZhmAM009; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680949665; 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=0GUQWGGg/QW9WOvBsJrefxoDF9t+DrpIucUKkfcc9rM=; b=FBtmQu+PE6ymlD6dGT1YB29tgZ44VFlm0IBqoK3TrrHnFXV6IYwRwmCFv5ihF9gY8YNzF6 1RsNSVWDvljRRlDdm985YU2Qf5V54cEwj1UDp+Jr0tXFtDqO9OXuoUBBGOqmzxC9TudfT0 +qrVbQEFtdfBFy3EHTdxPVKCZ6Ozv74Y0ZKvy+C7htzTKAvKMUggH2k5eGuUlntqwxfjpJ bUV7bH8956xIRjOV2rininjCSMtTo8/UmxcqbU4snmFtafLJB5ITcQpzloKqheD1CA2Mxl Picdw9U65h5EUpxuqRRdS8nxBN7I5jR6qLKg4dPAelnsCz5qZXSWTJOtqpMUZw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZhmAM009; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.82 X-Spam-Score: -7.82 X-Migadu-Queue-Id: C8D09969C X-TUID: D8ohlBrL8h1P Max Nikulin writes: > On 07/04/2023 22:29, Vladimir Alexiev wrote: >> It's not about the tooltip in HTML: >> figure captions are very important in scholarly publishing. > > I see and I do not like that Org exports caption as title (tooltip). On > the other hand neither original markdown nor GitHub flavored markdown > have notion of figure caption. Pandoc extension has the issue with > duplicated text in caption and alt. I have seen mention of
> block in commonmark, but I have never tried it. > > MarkDown is rather basic format and the closest approach it a paragraph > below an image despite they are not grouped into figure. > > ![](fig.jpg) > > Figure 1. Caption In theory, we can directly use
HTML tags + direct HTML in the MD export. That will be actually the closest way. But direct HTML is not well-received when using the MD in practice. For example, sourcehut, GitHub, and Reddit do not allow arbitrary html fragments when rendering MD (AFAIK). > A workaround for Org is export snippet or block for the paragraph with > caption > > #+md: Figure 1. Caption A better workaround is a custom filter, or we may provide a customization, if someone offers a patch. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at