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 ms9.migadu.com with LMTPS id uNw9MnxkLWSZdAEASxT56A (envelope-from ) for ; Wed, 05 Apr 2023 14:07:24 +0200 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 SKDbMXxkLWSB4QAAauVa8A (envelope-from ) for ; Wed, 05 Apr 2023 14:07:24 +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 743F7388D2 for ; Wed, 5 Apr 2023 14:07:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pk1uQ-0002Mg-7D; Wed, 05 Apr 2023 08:06:38 -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 1pk1uN-0002MS-6V for emacs-orgmode@gnu.org; Wed, 05 Apr 2023 08:06:35 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pk1uK-0002lD-E4 for emacs-orgmode@gnu.org; Wed, 05 Apr 2023 08:06:34 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pk1uG-00057O-2z for emacs-orgmode@gnu.org; Wed, 05 Apr 2023 14:06:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [BUG] ox-md image captions Date: Wed, 5 Apr 2023 19:06:19 +0700 Message-ID: References: <871qmbym7y.fsf@localhost> <87a5zoav86.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US In-Reply-To: <87a5zoav86.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-1.355, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1680696444; a=rsa-sha256; cv=none; b=MnNLPi7jkWovZSL/PzHxSUjgTYc2LSR8M+EDsynMhMAx9M3yKQhko+sE3rCi0Oyzr30g32 46yWe/i7+aoBUEmbvqeNznx0KykuMe0YCy4LWmACrmby6xyk/nT2X5+ugqb1bztLAEcS6x CBO4tI1i5bnsbVg/v2JTXv6kxzhQUYWUxoi4wuw6tDnQVgmWWnu/NZrKCiWM6YPUUjznyP ORVQsxUYa1VxWhsRuSDzLudLJ1FJm6DXqmYNQsyWiuzMCjgIaYxANMmo160eJl8PUlf4Vl 0oHLpLLM0ycXOh5n7/0aAJT29B1wJpFfXss6Us0vj1RGy12oxQtn1UDEYVS+xQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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=1680696444; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=leQUcOmERech/+hsqWVJLa7A7GH0iJoPYTe2Gc0zPc0=; b=Llduf+v+VfSHCouIuWar5ZERalhReERV8LmbNTsPjohb5E9oe2/0IZyhMKGnjxlC3xjWCE Pvde9YYtmAbCF7l8BjfiwDqtBMXXcR+f0h9Axud0XUDJgkDw62kMZinE3TuWnVloXMDm19 prjy5siy/S/19Jw3g5LWTyHxO1wwYl+u29mRtchkxMrMHROJkAxBnzYaIFQevGd4utuRrj vddFmpeTWiD66RfXEe6g0CYckuSrxQ2psWhnTsY5wwYDRKMvSOAU25C997qnJRAIfI4L3p ZPamXnsLhwQodmYArCzTtBs5P+ZeyrtUETodleXJn+R9VXcDOWqOIYmjgyraIA== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: -2.72 X-Spam-Score: -2.72 X-Migadu-Queue-Id: 743F7388D2 X-TUID: R5tCa926NPek On 04/04/2023 15:48, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> 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). > > 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. My reading of https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#the_title_attribute is that caption should not be exported as title. Alt text is more "visible" than title, but perhaps caption should be exported as text adjacent to image.