From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cA2KDBglyF+WHwAA0tVLHw (envelope-from ) for ; Wed, 02 Dec 2020 23:36:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sAZVCBglyF/EBAAA1q6Kng (envelope-from ) for ; Wed, 02 Dec 2020 23:36:56 +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 865D994011C for ; Wed, 2 Dec 2020 23:36:55 +0000 (UTC) Received: from localhost ([::1]:46486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkbg5-0007U4-St for larch@yhetil.org; Wed, 02 Dec 2020 18:36:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkbfP-0007TW-EL for emacs-orgmode@gnu.org; Wed, 02 Dec 2020 18:36:12 -0500 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:33725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkbfK-0006PF-Rv for emacs-orgmode@gnu.org; Wed, 02 Dec 2020 18:36:11 -0500 Received: by mail-pg1-x532.google.com with SMTP id o4so264549pgj.0 for ; Wed, 02 Dec 2020 15:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:message-id:date :mime-version; bh=JVM85iESAixE6TanaqtDQ0o+/ftZisjvgJBPWwv4GUY=; b=cuHalYCpl+6qAxmqfQ0I6pUyjHTkcR9RD9cAkWqSAMr2hgGCGVe6yVyLHtIHJq/ENN dF8dZqLg104zit9pxFkUdArUX8xLAdB6GulBNwExEbqA+PnU64o3WMMPpoFlh1MnRFbg wzSk2W4R0WSub0Vsq1X5qbJ+o12TVAR5uzJLT/E0fgx1tUzn92AezfeHlZi5n9OyGYv6 cxWnGDU9fb1Vj6MyXGRRifjl+1YSKTHgd9aKLmH45Y8fT4jaILGIx3PzVA+0r8hMDoif 6a+tzbn6/GGX8Wrr2UnsJKXjJo9ymzgt92nhswP4zSDdUL49UzPO0ZnmV2CTtDTwaMWC TSdQ== 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 :in-reply-to:message-id:date:mime-version; bh=JVM85iESAixE6TanaqtDQ0o+/ftZisjvgJBPWwv4GUY=; b=YuQdqTBro8w9F4YhZ0/nq5jsN7e7njuLf4GHowkCcCKOjtxy9mAV0i7umJudR6SUqR ldGRlR5fLFPJjFlzOd+urYizpqwo58hz/K5kZcH+zHFltkhb2DkpSE/o2hljn1wL0gcB e0P+36FFwtNpUt3oalMOAT4MKVgb9RM6HJrRWSwgPgM4Pz8hPPMxurCQJ3ajVsLv4PhD 8PEDyz5ZqKdYnHG1hzUG7fNGIsCen9g2bOfWKxn6EuV2lcUuEE/F36iTgKCWlW+PJhjM 6ENS20vNbf9tKsJgjg9MM19WEzuzA69Pi3RvwRp05A+XVokb/ApvZLLcHZNDY3zskxu0 Uy5g== X-Gm-Message-State: AOAM532pMqqOlnGNh1jf5l1Wuv/apNCyqH04142MwcEtGSTIMQS4D16T 4s09xR7fEo8qw9TwqEXWKY0VcFaMpZP7qA== X-Google-Smtp-Source: ABdhPJzPnePfyILOY5CVJlYUB/QODbeAU2WO8qTAtEVHZIjUPMDbzQbhi6j8ifLtRxClXU8CfBA24Q== X-Received: by 2002:a63:515f:: with SMTP id r31mr591469pgl.200.1606952165104; Wed, 02 Dec 2020 15:36:05 -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 k4sm158217pfg.130.2020.12.02.15.36.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 15:36:04 -0800 (PST) References: <9aa624fff553d9d140a6d89aab12e21b@isnotmyreal.name> <874kl4j8lx.fsf@gmail.com> <2eb882bc4d0035d9ca861bfea49b8221@isnotmyreal.name> <871rg7khvw.fsf@gmail.com> 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? In-reply-to: Message-ID: <87wnxzixwe.fsf@gmail.com> Date: Thu, 03 Dec 2020 10:36:01 +1100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x532.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=cuHalYCp; 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: 865D994011C X-Spam-Score: -1.98 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: 8lt6ZZOcj5vG TRS-80 writes: >> On 2020-12-02 16:59, Tim Cross wrote: >>> TRS-80 writes: >>> >> 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? > > Unfortunately, the Org HTML exporter (which is in fact the parent that > the Markdown exporter was derived from) also makes extensive use of the > id attribute and anchor links. So I am afraid those would be sanitized > out exactly the same. > OK. My reading of that response was that the custom approach would give you full control over the HTML. If they still run some sort of sanitiser, then you would still have an issue as you actually don't have full control. However, that does seem like an odd process. I mean, if you go to the trouble to setup a custom workflow and then having some arbitrary sanitiser come in at the end and move the goal posts seems broken to me. -- Tim Cross