From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IBs1A8ItWWHtFgEAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 06:12:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QNN6OsEtWWF9LAAA1q6Kng (envelope-from ) for ; Sun, 03 Oct 2021 04:12:49 +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 52DC58CAF for ; Sun, 3 Oct 2021 06:12:49 +0200 (CEST) Received: from localhost ([::1]:46654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWsro-0007Fn-FL for larch@yhetil.org; Sun, 03 Oct 2021 00:12:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWsr0-0007FX-9b; Sun, 03 Oct 2021 00:11:58 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:55157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWsqx-0001WZ-Gf; Sun, 03 Oct 2021 00:11:57 -0400 Received: (Authenticated sender: lists@traduction-libre.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 9B83620009; Sun, 3 Oct 2021 04:11:48 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [emacs-humanities] Elegant way to export org to Markdown ? From: Jean-Christophe Helary In-Reply-To: <03D77FFE-6631-44E1-A77B-F074588AAB3B@traduction-libre.org> Date: Sun, 3 Oct 2021 13:11:45 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <1FB5F9A2-076E-48CC-A7A1-11AA70E762BE@traduction-libre.org> References: <03D77FFE-6631-44E1-A77B-F074588AAB3B@traduction-libre.org> To: orgmode X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=217.70.183.200; envelope-from=lists@traduction-libre.org; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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: , Cc: emacs-humanities@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633234369; 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: 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=Z1ZP6ZT8YyrOVgX/wicJURKkMVUSM46hrot9QhozTCY=; b=eM2LS1aB4gqNKUScXpF7lPhzhFNane5yMY7Ic3i99Uw5LwpOGO71GzQX52LRYSAWaTYkgJ GUTc9AnU1dWIHADZoenBcw0YCuX/6ME16IVmqu9LX3LN0kKe5Q+eQVl40ZHRSiGlVptfgw GzwFwAc1bLUw6PjUPIIATgfZsrtl2qVZQmj6TFXLA2k0gwTBmScCyvkOtNxL22mat4ymJy R8F9ul53+el6lvay4wzv4SzM/08otPzFZ1Ag6oIxZRE6wAFF9C9v6QkaMXVBp99i+BBqno jb8e0a5L0b5xUo6MoKl0n53M2RNWV4qSXuVrMQb5Z6e0k+QYuXAAKFK3xiQXtQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633234369; a=rsa-sha256; cv=none; b=dPnVelnXBfPWqyYC5WjHB89IBdt+F5xD6gC83ej6O34/LLMteegl5GDFdAUwcd7i4yzNWV 6rABC9AjR2Ivn9GHbJBmFDdx+9BlBsvFWRJ8PFtgcaHgekzlgpQzI+0+TqCwPtE8Y/OYQB 2Wa+5qClDMsP4Cf1++V3C9ZZwXvF1SNyARP42Q1uBOFzIZCxN04NPdDaES7HptGn/Mn33P 9cQmX/QedKLlVDpiGSZdgSfUo94yUR8vhjE5/XkJawmqnaWCFYBsGvkDslhDDL1Z3Hecvh ZEh4MsG7CIRVtsqakoFVf+CEGQhiMVw+rcUffvvsjtF1Gzszcd4YaN3HMqJSHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -0.90 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 52DC58CAF X-Spam-Score: -0.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: UvYkZPNiwy0p Better solution found: quit sr.ht and move to a gitea implementation. No hassle, org files are fully recognized. Jean-Christophe=20 > On Oct 2, 2021, at 14:20, Jean-Christophe Helary = wrote: >=20 > I'm trying to work with SourceHut (sr.ht) and right now they only = accept Markdown syntax for their readme/wiki files. >=20 > Since I work in Emacs/org-mode to write my documents (and try to stick = to that), I'd like to know if there is an elegant way to export org = syntax to MarkDown. >=20 > I was thinking that the export-dispatch had an option for Plain Text / = Markdown, but that doesn't seem to be the case. >=20 > As a workaround, I thought I'd work on a README.org file that I export = to HTML, change the name to .md and edit the contents to reduce the = markup to the strict minimum... But when I saw the contents of the HTML, = I thought that would be way too much work. >=20 > *BUT* MarkDown bien basically HTML *without* the head/body tags, it = seems to me that the HTML export-dispatch thing could have a "super = simplified MD compatible" HTML option... >=20 > Either way, I need a method to export to something that sr.ht will = recognize and process as MD so: >=20 > 1) is there an external "approved" process to convert org-mode syntaxt = to an MD-compatible format ? > 2) if no, what is the not too hard way to hack the HTML output to = produce what I need with export-dispatch ? >=20 > ---side note-- > And, Hello to Emacs-Humanities! I was away from the emacs-lists for a = year and when I came back I found that this amazing list was born. Last = year I started a "go-back-to-school" process that will eventually = conclude with me finishing an MA in Japanese studies, and I wrote my = first 57 pages research report last year with org-mode/Zotero/NeoOffice = (a macOS only LibreOffice), and that was fun. This year I work remotely = as a part-time lecturer in translation studies where I'll teach how to = use free software in translation (OmegaT/Opaki Framework/Maxprograms) = and I wanted to write my teaching material in org on sr.ht, but... >=20 > --=20 > Jean-Christophe Helary @brandelune > https://mac4translators.blogspot.com > https://sr.ht/~brandelune/omegat-as-a-book/ >=20 >=20 --=20 Jean-Christophe Helary @brandelune https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/