From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id /ekJFrHxx180WQAA0tVLHw (envelope-from ) for ; Wed, 02 Dec 2020 19:57:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +HA1EbHxx19WbgAAbx9fmQ (envelope-from ) for ; Wed, 02 Dec 2020 19:57:37 +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 BADD7940430 for ; Wed, 2 Dec 2020 19:57:36 +0000 (UTC) Received: from localhost ([::1]:46120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkYFq-0007C7-Dr for larch@yhetil.org; Wed, 02 Dec 2020 14:57:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkYEo-0006qx-Kg for emacs-orgmode@gnu.org; Wed, 02 Dec 2020 14:56:30 -0500 Received: from server173-4.web-hosting.com ([68.65.122.210]:45635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkYEm-0003Ho-1o for emacs-orgmode@gnu.org; Wed, 02 Dec 2020 14:56:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UeijH956oTnOmw/WEd+Ahpys3TkSHYvVF/s8lGnkcCU=; b=Qh2tw+FWMpTTVAn72a6ED+1PXN 05gSR9WAWrNtV7k37j+dS1jiYRDIcz6BOoWh72jIvg/Uabg/WskUfOphiElHgIkfFUOKxOGlHh4yU WVp8UmgqTmeagIqrApJtOeRZsdsJ1xlS3jAQSBatGKCdHPeBFSttt/x6JeB0mH1W9yqw+eNJgCMVb KdO3AVpdAsVHCSFAv+q9dHsdT+mBTJMFOhQg2m4hGRnKVK+UY3mXKdlgXwO3YFjqF760FORqiConD JPdEymLXkczIUN9N24L3UE5vrpzJ4tRR5JrOpf47Sa8fpnx1W2+oXD6XbGkNyJ6tdsrC0VDWr9hsp G5qy6HjA==; Received: from [::1] (port=56148 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.93) (envelope-from ) id 1kkYEe-0037AW-DG for emacs-orgmode@gnu.org; Wed, 02 Dec 2020 14:56:25 -0500 MIME-Version: 1.0 Date: Wed, 02 Dec 2020 14:56:20 -0500 From: TRS-80 To: emacs-orgmode@gnu.org Subject: Re: Exporting .org to .md for Sourcehut (sr.ht); ox-md not following Markdown spec? In-Reply-To: References: <9aa624fff553d9d140a6d89aab12e21b@isnotmyreal.name> Message-ID: X-Sender: lists.trs-80@isnotmyreal.name User-Agent: Roundcube Webmail/1.3.15 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.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, 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: -0.28 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=isnotmyreal.name header.s=default header.b=Qh2tw+FW; dmarc=none; 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: BADD7940430 X-Spam-Score: -0.28 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: X42XqdNJ7p6T On 2020-12-02 14:12, Jean Louis wrote: > Try using pandoc Org to Markdown as that could help until Org > exporting start working how it should. Great minds must think alike! :) I tried that already but in-page links which look like: ``` [[*Setup][Setup]] ``` Somehow get exported to: ``` *Setup* ``` ...which is not a link at all, but rather just italicised text. In fact, I think I will go now and bring that up to pandoc project... They have several different flavored Markdown exporters available, I tried all of them in fact. FWIW, I also tried going the route of exporting to HTML (which is also supported at Sourcehut)[0] however I ran into lots of other similar issues like in OP, as the HTML exporter does the same things with id in links. I actually worked on this all day yesterday, still without success. I am of course still open to any suggestions, but I came to conclusion so far that fixing the ox-md exporter might be the Right Way and I was willing to dig into that further, myself. I work extensively in Orgmode and have plans to publish many more things (likely on Sourcehut) and I would rather do whatever work is required to fix ox-md than change all my existing (or new) work to Markdown. I really do hate Markdown that much. :D Also, maybe in the meantime I could simply hard code a ToC, but that still will not fix other in-page links throughout the page (like the *Setup example, above). Cheers, TRS-80 [0] https://man.sr.ht/git.sr.ht/#setting-a-custom-readme