From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QJb5KnsOyF97bwAA0tVLHw (envelope-from ) for ; Wed, 02 Dec 2020 22:00:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wJezJnsOyF+PfAAAB5/wlQ (envelope-from ) for ; Wed, 02 Dec 2020 22:00:27 +0000 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 089559404FF for ; Wed, 2 Dec 2020 22:00:27 +0000 (UTC) Received: from localhost ([::1]:53294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkaAi-0003YJ-J7 for larch@yhetil.org; Wed, 02 Dec 2020 17:00:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkaA6-0003X3-G7 for emacs-orgmode@gnu.org; Wed, 02 Dec 2020 16:59:46 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:47066) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkaA4-0002s2-Rt for emacs-orgmode@gnu.org; Wed, 02 Dec 2020 16:59:46 -0500 Received: by mail-pf1-x42c.google.com with SMTP id s21so2097611pfu.13 for ; Wed, 02 Dec 2020 13:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:message-id:in-reply-to:date :mime-version; bh=ska3p0c4CR7Mm77WdNg/xOTuMaLxdyTbMXauu2MYBKk=; b=jLG7Er0GesMJGe78SSyvDzKyJsI8tIWwZQoCGtQwQfnOPa55iubjDzw8n6Rugh/zt8 joRCAb2R+sUP6xxuN5v5Gu4fonY8Z3Td9P2jWo22+arXtglON+J0XdqGHFRn2LIauboy xZ+YbflEXJ7HJT8RRvsdu9T8A19pWF7J4g5M7vIQ9T7mFcjcbOjHU3k1/TSbUIuKRggA uoJxTY3g2QoN/wZTCQL27v+czGg/4cdMejPhb4HjeH2W/I0C2aR/yIE9uTAOSwALr+9f I8L8XSS5s3cnG21i/rmLsWHD9WOTaXNYWnizX4qn3NST78AKptg80NMy4/kbilVZqo17 9MjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:message-id :in-reply-to:date:mime-version; bh=ska3p0c4CR7Mm77WdNg/xOTuMaLxdyTbMXauu2MYBKk=; b=AEkZwDCcK2jSXF6GVEFEl+vmKomghP7vKPjq1VCMU0SOqVlcJdeGMtjG3H7W3AiNWH bk46yoYdm8/Sx/ZGNvayRnb4Qza0doxXzrUNUnhrKBZpHN9H1g4GgxMEoAIXNzz0knDP lU4OMGxGmuhKZ6fnn6ZtV/qPIGkmER613NkW+uPj89nx9lhz+Ah4mkSFGVdgZ8VTXNfV 98bVDl7kxSjM1XvvYTAMDjxo1Xd1sKQuTcX7VWZiFIyhneo+p7tYbjbjo3u4bUsDd83x f3ZjKlJiziISvPDTs2yHT1QmXBBD9oOj8TBOJCDjK5ByENpk9fDuGFJLYr2VMv2Exidt D3Vw== X-Gm-Message-State: AOAM532hq3oA1DMGIr1DytcCKAOE43fGFaKLwGu9hdpZC7edtVipxdPi aYvwOmRmPItbIvp57VWlO+zP0wIeKCVMCw== X-Google-Smtp-Source: ABdhPJzwQsIAdW+HAsLFmRWuMZwvEOuwimz/Y2j0g0JZ0BKvQlk2ML0YaPEIO6x2Wy5YHSkN1t1iYg== X-Received: by 2002:a05:6a00:2384:b029:19a:eed3:7f42 with SMTP id f4-20020a056a002384b029019aeed37f42mr236753pfc.4.1606946382902; Wed, 02 Dec 2020 13:59:42 -0800 (PST) Received: from tim-desktop (220-235-10-97.dyn.iinet.net.au. [220.235.10.97]) by smtp.gmail.com with ESMTPSA id b13sm76477pfo.15.2020.12.02.13.59.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 13:59:42 -0800 (PST) References: <9aa624fff553d9d140a6d89aab12e21b@isnotmyreal.name> <874kl4j8lx.fsf@gmail.com> <2eb882bc4d0035d9ca861bfea49b8221@isnotmyreal.name> User-agent: mu4e 1.5.7; emacs 27.1.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Exporting .org to .md for Sourcehut (sr.ht); ox-md not following Markdown spec? Message-ID: <871rg7khvw.fsf@gmail.com> In-reply-to: <2eb882bc4d0035d9ca861bfea49b8221@isnotmyreal.name> Date: Thu, 03 Dec 2020 08:59:39 +1100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42c.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, FREEMAIL_FROM=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.23 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=jLG7Er0G; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 089559404FF X-Spam-Score: -1.98 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: xo0GOVfYDFTs TRS-80 writes: >> On 2020-12-02 14:44, Tim Cross wrote: >> > I think the problem is actually because Sourcehut are sanitizing the id > attribute out of links, as I have replied already to some other people > in this thread. > >From what I can tell, yes your right. However, it also seems that this is an arbitrary decision by sourcehut. There doesn't seem to be anything in the CommonMark spec which prevents the id attribute. The commonMark spec explicitly supports raw HTML including attributes. This also makes me think the problem is not with the org mode exporter either. Basically, sourcehut is using the commonMark spec plus their own 'extensions/modifications' to that spec. The org exporter is not breaking the commonMark spec. Org mode exports could use what could be argued a simpler link target export style, but perhaps using the 'raw' HTML approach makes it more flexible/compliant with different markdown flavors? Problem is, changing this now could result in lots of breakage for others where it is now working. I note that in the email thread you referenced, the last post suggests setting up a custom readme format which would allow you to use HTML. Maybe that is the easiest route to take - org -> html with custom readme? -- Tim Cross