From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 YHzsNm9HLWS9nAAASxT56A (envelope-from ) for ; Wed, 05 Apr 2023 12:03:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eP3BNm9HLWTOFQAAauVa8A (envelope-from ) for ; Wed, 05 Apr 2023 12:03:27 +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 6D0922C2A2 for ; Wed, 5 Apr 2023 12:03:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjzyP-0005Wr-Dq; Wed, 05 Apr 2023 06:02:37 -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 1pjzyN-0005UU-B4 for emacs-orgmode@gnu.org; Wed, 05 Apr 2023 06:02:35 -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 1pjzyK-0001Qu-RF for emacs-orgmode@gnu.org; Wed, 05 Apr 2023 06:02:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6B1D224004F for ; Wed, 5 Apr 2023 12:02:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680688950; bh=MjoS3fPCrOqAEzXjcKY9b0iHxCjCJNURdBIrZREzukY=; h=From:To:Cc:Subject:Date:From; b=ITrC6Ab9YCQFfixkQsrRpBhxFTOLbfyPhElN5cOY1UxbAY/Uhdd+QMhZfDxIe7jUj MCquMW/8W7rUGF4gKyOnZbylBtspl/i+cjbFk/UnavefSFz+s5frsyxX+i8tTuYxex JARS6PPsjlqDjD+ROgmZFQ3TPftZo0X4YYQHSa8sGJHCZ345TLu+pRFBi2xA14yPD1 uRPC+GuBHM0jLtbq7HoBRuFFoODzCxYe6PSF4xqk349uqeJsJR0K1aFe1YS0anJRFu KLgTiLK+hk1bsjsf6kiSpH4h/kZdZ+6hu8ZhWqeT6KIyHhYiV8XsbgwvDG19M9Zk3B dP3LhoDZnjPTA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ps0YK6C0Tz9rxG; Wed, 5 Apr 2023 12:02:29 +0200 (CEST) From: Ihor Radchenko To: Morgan Willcock Cc: Vladimir Alexiev , emacs-orgmode@gnu.org Subject: Re: [BUG] ox-md image captions In-Reply-To: <875yaa1x67.fsf@ice9.digital> References: <87a5zoav86.fsf@localhost> <875yaa1x67.fsf@ice9.digital> Date: Wed, 05 Apr 2023 10:04:52 +0000 Message-ID: <877cuqk5kr.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=1680689007; a=rsa-sha256; cv=none; b=LMSas48wu7PT4JDckp2kE7NZKOEzCQXxVjlaqM4tiggu4KkGvA3WyoAWlFYzAkHpLvmJmC UOuqEXWxPLOxk+qM+yTZliTOdBldayVD7Oc6IhzulopPTPSN+3/qv50eShK8M6Lm4BLtgw Xt5YUzPUJPn2hhpXi2wX8nEV2x6q5O5LHN/1QaXuu7U/D+K4W7IToosO7F9VpHvjFxG0LE 3nveEcR8O5rGgkaPaXj0IB5M1khXQjZYA6bU1WNw8RMo0h84IU26Vo0I+yZtsFdMEqsECI s3U4mLBa6PslYK+LmSOlPuHYaJbEzj7Z6AoWXglEQFF0M2mdrK1p1KVIPPO8Yg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ITrC6Ab9; 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=1680689007; 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=dn2Rpzrw2jKpQ0grrvNXivsZMOdy8n1hBCm5qHgnc+E=; b=MaYplSentXzvntzZwxlhrL7ZAh9vkn/jI1jCx5XdYif3KQ53bka3L8ahtXNi3J2JOGnc3x H06tk+Mf5pt8P2/2FZI5cbD3RLsuz82HrrNNKL0w9qi6wowuT/6u7HAqj9UF9X8NFWnVF9 pYGJmMtuL6AlDVNfBRWSSoZWYfCZhs0LAfroHPL8T5JQy02SDw3R+BxH0+HtksT6YiQQSK cO7lr28EyhVWhvb65Gt8TH3WnpTM2+9ttOXv5jFXxuQ4A0lbrh4FdoCMd+mGt4fel7JNAW t1FH3vmr7yxmXQn17ggT1xLRrPRQh1p/oxSb/nkDLdwl6jNJuXztfBuy44M7vQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ITrC6Ab9; 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: -11.21 X-Spam-Score: -11.21 X-Migadu-Queue-Id: 6D0922C2A2 X-TUID: TM6aqZ3EARp1 Morgan Willcock writes: >> https://daringfireball.net/projects/markdown/syntax#img >> >> Therefore, Org mode is doing everything right within the scope of MD >> specification we follow. Pandoc does not. > > I don't think that Markdown has a single specification. Indeed. And the one in daringfireball is what we historically follow since >10 years ago, when ox-md has been implemented. > Perhaps it is a bug that ox-md is not following a specification, and > this would be fixed by using a specification and passing its test suite: Please provide concrete examples where ox-md does not follow specification. The title/caption issue herein does not qualify. https://spec.commonmark.org/0.30/#images also defines ![foo](/url "title") with "title" being the title, as we currently use it in ox-md when exporting captions. > https://commonmark.org/ I agree that using CommonMark.org as the source of truth will make more sense, given that the original daringfireball.net is not precise. It would be helpful if someone examines whether ox-md is consistent with CommonMark. > However, if ox-md is intentionally trying to match the behaviour of the > original Markdown.pl, the Pandoc format that matches this is > "markdown_strict" and not "markdown". > > i.e. Pandoc's "markdown" format is not the same format which is > described at daringfireball.net: > > https://pandoc.org/MANUAL.html#pandocs-markdown Indeed. ox-md is certainly not aiming to export to Pandoc's markdown flavour. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at