From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 wJPBCBF8LGSaGQAASxT56A (envelope-from ) for ; Tue, 04 Apr 2023 21:35:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yIDDBxF8LGQIqgAAG6o9tA (envelope-from ) for ; Tue, 04 Apr 2023 21:35: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 A85D21993 for ; Tue, 4 Apr 2023 21:35:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjmQa-0003LH-Fi; Tue, 04 Apr 2023 15:34:51 -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 1pjmQO-0003KD-HB for emacs-orgmode@gnu.org; Tue, 04 Apr 2023 15:34:37 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjmQL-0006E2-8W for emacs-orgmode@gnu.org; Tue, 04 Apr 2023 15:34:35 -0400 Received: by mail-pf1-x42b.google.com with SMTP id dw14so22185628pfb.6 for ; Tue, 04 Apr 2023 12:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ontotext.com; s=google; t=1680636869; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JOBbbaUnEvabhQWWlY+0qkem/LWThgClklwpyCimKVA=; b=bLCiVVR5B8kLe5M2mt3v5UoZ82Gt4KJM7Oe4cH9LXGfRlaFf6yk6TMiSRwAiwFxHfY XNz6ddk+3pBmWBtJdqRytma8comc8xGtyIEGBg3Q1XQd3gceZ9mb9AwRzNPDugKk89LY eYZxPFzkUqF5UNTlBMrrptZT1kIVWJ/eKzpZqzCKY4pQ4JtWo6RzhylaUNr/DgCU71Op b4eNPyWLXO1dR/CjS8MS3NIiDMdrm9tFYL/g8eLFnQTQWs/V/M7cKFdp9iCaTH5P/utb m/lyJeEYxMYioNQt0ikHrWvY1zRJaIDEfb4h9GLpqwMhsi7jKSg8VWsY2uGn3HfWoJ+f Bb/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680636869; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JOBbbaUnEvabhQWWlY+0qkem/LWThgClklwpyCimKVA=; b=iaUiiWq1J2Q7MWrzVHpdHY7B6qHQtTO7mHzJ6LyiAHLAdxIKqjwq3K+uKilE/m/nXK UZASEhOEJPo92KY4Way9rwIJomFCp7QKVQVyDvw8r300nEA0wzc0MkiWJqijXFy4696y SMdh5sOUrbHGcNv1mpQKhtg6YYTiqjMBEw3rtZsMi2eL/FsnnG60gju3T0MybV0KwCNZ Hn28v3YiIeULf6VqliW7lF3yAtjMILfYQcPZfvzm+pvJF4+aNAi9CEVzJJMhELgwYWq2 iJE6ydQGMecmW+N5v54qSe8n+WXYEfA9DrNkr5f07Ks1BhF+wN+0BQmTGg+Z06lk7J1d s6Cw== X-Gm-Message-State: AAQBX9cfbYuk26LCX3bNtLWeoC79V6kNNEFqlfxv93dsVYZZKLWitD4x ApoYdhUbpm2cxoemc834EkGew1PmZoCue8uYzDPXfaNucz4+v7gb X-Google-Smtp-Source: AKy350bsTs1BODWTbTF6EkhcE1KOgG9NBFqD3xH/wnNWwmw1XbHrBXXBb1HjrHdvRKk83wHDa+ZQcZQWoTvHtuY2Gfk= X-Received: by 2002:a63:f817:0:b0:4fc:a80e:e6ec with SMTP id n23-20020a63f817000000b004fca80ee6ecmr1108964pgh.5.1680636869460; Tue, 04 Apr 2023 12:34:29 -0700 (PDT) MIME-Version: 1.0 References: <871qmbym7y.fsf@localhost> <87a5zoav86.fsf@localhost> In-Reply-To: <87a5zoav86.fsf@localhost> From: Vladimir Alexiev Date: Tue, 4 Apr 2023 22:34:16 +0300 Message-ID: Subject: Re: [BUG] ox-md image captions To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000099e0ec05f887c318" Received-SPF: permerror client-ip=2607:f8b0:4864:20::42b; envelope-from=vladimir.alexiev@ontotext.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1680636944; a=rsa-sha256; cv=none; b=M+EQDmLhp8SADpI45lpHJiWDGD3gp6Oae3KItLfFo2yI6YqmoO9pPLMIJvDukbwiWYyhwr kfzchFe95thp/FmgaJ1QBhW6ZTNDoBr3qIynTFPcxzFHqYjlLU4g/36izaQiCj6OG7iyyL oRnXJzh37Qn+V9ROIvlIeH8hsxgVdkPuCkxs88geTaKMsTa2nm7LQXA52yPtiFBBTr6yUA W6GEaiGDNs7HLPSTIkxzPmvxfsMTSYbLxQQuAHdhNOF7yAKwjNE7+3S3d2jQ34csOAfJ8p ltAGSYSdLy/mufac69Cir+qsaIHCVYppXYzRMvz6agIVBcoTxUass2RcI+SFCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ontotext.com header.s=google header.b=bLCiVVR5; dmarc=pass (policy=none) header.from=ontotext.com; 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=1680636944; 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=JOBbbaUnEvabhQWWlY+0qkem/LWThgClklwpyCimKVA=; b=eA/jzQt9f+1kdqBVLu/JezMuUpfTJtTI3fC+7Ibg7XZFsQWDs9yDj6bdXspULryOaYpfSr ZcLIauPpvoSUia7kSvyJHvtDbfASrib2cg4eV18qmR3BvpAHJwKmCdBSuRXx0MQXnSxxiI 3Rxgl++uiPo63SS94GLYaRcXYkrFX1Vl8dgEsL9FF4UNkgoWf/wYdPmyHa86irCrzgYVbX oY4rTCeVGHS5HyNF+1LEqWsBzTRUeLCO5dQWmPJy+vr5GGdc36Ejyfmm58pjwfZgegqC57 bvYrJmnpQyVZPUNPYfRYrM9nZsflFvV4ttIbEcpZ2qhkxsm2yTnlBnYK9tkgug== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ontotext.com header.s=google header.b=bLCiVVR5; dmarc=pass (policy=none) header.from=ontotext.com; 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.52 X-Spam-Score: -7.52 X-Migadu-Queue-Id: A85D21993 X-TUID: 93phnrviOcr5 --00000000000099e0ec05f887c318 Content-Type: text/plain; charset="UTF-8" Maybe an option? Saying "pandoc is in the wrong" doesn't do much to resolve the issue. Despite my enormous love for orgmode, Pandoc is used a lot more widely for scholarly publishing and interactive websites. See Quarto and Manubot. On Tue, Apr 4, 2023, 11:46 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). > > > > Any objections? > > 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. > > In fact, looking closer at https://pandoc.org/MANUAL.html#images, I find > it very strange that alt text is used as image caption, not actual > title. In HTML, alt text is supposed to be displayed *instead* of the > image if the image cannot be viewed -- a feature often used as the base > of accessibility for blind users. See > https://www.w3schools.com/TAGS/att_alt.asp > > Therefore, I see no bug on Org side. > Canceled. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --00000000000099e0ec05f887c318 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Maybe an option?

Saying "pandoc is in the wrong" doesn't do much to resol= ve the issue.

Despite my= enormous love for orgmode, Pandoc is used a lot more widely for scholarly = publishing and interactive websites. See Quarto and Manubot.
On Tue, A= pr 4, 2023, 11:46 Ihor Radchenko <yantar92@posteo.net> wrote:
Ihor Radchenko <yantar92@posteo.net> 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).
>
> Any objections?

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/project= s/markdown/syntax#img

Therefore, Org mode is doing everything right within the scope of MD
specification we follow. Pandoc does not.

In fact, looking closer at https://pandoc.org/MANUAL= .html#images, I find
it very strange that alt text is used as image caption, not actual
title. In HTML, alt text is supposed to be displayed *instead* of the
image if the image cannot be viewed -- a feature often used as the base
of accessibility for blind users. See
https://www.w3schools.com/TAGS/att_alt.asp<= br>
Therefore, I see no bug on Org side.
Canceled.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mo= de>,
or support my work at <https://liberapay.com/yantar92>
--00000000000099e0ec05f887c318--