From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6GGbKRNDLWQERQEASxT56A (envelope-from ) for ; Wed, 05 Apr 2023 11:44:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YJJsKBNDLWRq/AAAG6o9tA (envelope-from ) for ; Wed, 05 Apr 2023 11:44:51 +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 299CBF3FB for ; Wed, 5 Apr 2023 11:44:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjzgS-0007c3-7e; Wed, 05 Apr 2023 05:44:04 -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 1pjzgH-0007ak-Rc for emacs-orgmode@gnu.org; Wed, 05 Apr 2023 05:43:55 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjzgE-0002W1-8L for emacs-orgmode@gnu.org; Wed, 05 Apr 2023 05:43:52 -0400 Received: (Authenticated sender: morgan@ice9.digital) by mail.gandi.net (Postfix) with ESMTPSA id 370C7FF812; Wed, 5 Apr 2023 09:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ice9.digital; s=gm1; t=1680687826; h=from:from: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; bh=8j4xfIYaoGbqkqsqtJpG/SJsr9IWf8GESenVHxOZIp0=; b=gvlKCyXWqw9ws5sfUUp6QMDFs3XBSAVD+ywKZAEmUX9CAJXpSecYQ2wFaifme7Vs0SSV8c A0uzf6GPiqH+qrWSI8AoBSnBJuSxSClI+8ZgfnqjvdBGSns5RWA/wP1eV+VNOaiaYlk0dC OwbH4wcNgOLAj2QtF5vSdy8QX1o4wuXr6oJ/QuKQTyGMQKDdUx4ous7daRPNeP+AYWs6st lCnU0tZx2XPlhxJaINfRYfQZEIZpDoTi4kDb9O0Pv1wdOknq/u+nOYJzVHUs9rJjXclroM Ynn2qsHAUclma+Qt5kFUiKQ1vNrv+49KhyVAP0zV9F4magqjX1tT3eDkT9PkIg== From: Morgan Willcock To: Ihor Radchenko Cc: Vladimir Alexiev , emacs-orgmode@gnu.org Subject: Re: [BUG] ox-md image captions References: <87a5zoav86.fsf@localhost> Date: Wed, 05 Apr 2023 10:43:44 +0100 In-Reply-To: <87a5zoav86.fsf@localhost> (Ihor Radchenko's message of "Tue, 04 Apr 2023 08:48:41 +0000") Message-ID: <875yaa1x67.fsf@ice9.digital> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-GND-Spam-Score: 300 X-GND-Status: SPAM Received-SPF: pass client-ip=217.70.183.199; envelope-from=morgan@ice9.digital; helo=relay9-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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=1680687891; a=rsa-sha256; cv=none; b=fHJh5awxIERlh4lONdeNax6yg/uXR7k2GGasGuFVlIufc5gwPN7jqc8y+HH93dbOE0eW1+ aKWkvLu+uQ3DMpgzFL1lWL4Df4/GuLIq8HjsAqrhPPbY9XJdmAIC2N7Zv6XlvLt0IDm3A0 mjakXVDEwoe5YjfWoDQoCzNfCwBa7wRUhKH1IT44aD3Hske+ARgPJ6jvFdQNSz7jIFyrkx dQM0NXxX/gWMQsd+Hei1FbAVpBgC4GEe8j331pzGfsRq4VQk4mnrqM9QPpgw7CBgnJi6Al JXGlbs7VppGSsOMRVWlTSNroihu1yXEBqncwqk8LvmXQnC+AHi+w1PzL6m73xg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ice9.digital header.s=gm1 header.b=gvlKCyXW; dmarc=none; 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=1680687891; 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=8j4xfIYaoGbqkqsqtJpG/SJsr9IWf8GESenVHxOZIp0=; b=usA1QsoNqFITHptvG0km7w/AhpkwPxmv/5iC8iSqyalMwfFjv1uGKaGNxsM2NZrvYcS4su c7kSSM+6rpISrnEcUv8hU7U+zulSDgu5obl77wNTsK77H8Ea9xdvC71iXeFYtOzSQeziqr Jkn5pBOxESMZSGWu0qWCS42bLOUuP6n9R0OKm90PLaoInRnfsudM7avJWL3wJ7nEZ5OXc6 pVrG088fkzZID0jYRJxliooR1qatC47vn4z69vYAtOsVpJUbvdp82TJx+6WMizOH/xToHR yBGefYA/QvG+hu54o6uTzTYPU7XGZNwLZ+/Q9tRT4nxXDLGLz1lGCqqbKxg/iQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ice9.digital header.s=gm1 header.b=gvlKCyXW; dmarc=none; 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: -5.21 X-Spam-Score: -5.21 X-Migadu-Queue-Id: 299CBF3FB X-TUID: nAlXss6hTsRg Ihor Radchenko writes: > Upon further investigation, I have found that our base MD reference we > follow in ox-md is defining image syntax as the following: > > ![Alt text](/path/to/img.jpg) > > ![Alt text](/path/to/img.jpg "Optional title") > > 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. 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: https://commonmark.org/ 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 -- Morgan Willcock