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 TStPDmvsV2ESFQAAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 07:21:47 +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 AJKCCWvsV2HQdQAA1q6Kng (envelope-from ) for ; Sat, 02 Oct 2021 05:21:47 +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 6C31F2A9E6 for ; Sat, 2 Oct 2021 07:21:46 +0200 (CEST) Received: from localhost ([::1]:59436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWXSz-00037C-JA for larch@yhetil.org; Sat, 02 Oct 2021 01:21:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWXSG-00036s-RU; Sat, 02 Oct 2021 01:21:00 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:45775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWXSE-0002NQ-5t; Sat, 02 Oct 2021 01:21:00 -0400 Received: (Authenticated sender: lists@traduction-libre.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 62259100002; Sat, 2 Oct 2021 05:20:52 +0000 (UTC) From: Jean-Christophe Helary Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Elegant way to export org to Markdown ? Message-Id: <03D77FFE-6631-44E1-A77B-F074588AAB3B@traduction-libre.org> Date: Sat, 2 Oct 2021 14:20:50 +0900 To: orgmode X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=217.70.178.231; envelope-from=lists@traduction-libre.org; helo=relay11.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=1633152106; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PAQnYrEyXLGqf3C9IA7jRM7YXxBuS7X6AQPResP7mlQ=; b=XPoxMU/SIGVgrZ/Czh7GDFPCei6u5zt/vsQpB5PN+liTxNmcxaVctPESxEQjW/We8M02fJ sL3w1VoYF4Sp03y1as8bN0r9ArHw9hN4uyZxTJWAvs9pgmoFsLQMojaYWSPWoPU+GNr2nI oQtICTlcIwa28cRu8BwghadiU2xEBctw0p5pxeL8HI4QYgiH+SspOJntaYg4yMet6PsGnr 5fXQ2rZtY0vAPzXL9z7Hl2u//VoB9yyYck2E+rkGbodJjCKr3s1B8fHGkg0sOrFLBl59Bw acb4S+Uabmlrjml+YBgNiR0WuqLx1anNsgNgO7GFpnIIDBrwGIi/t5KIehDORw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633152106; a=rsa-sha256; cv=none; b=JKtH2wlMFlLQUBaUlBaSMHSgDVtbvaCuauSoDDFuDT21bCW/Mpv3cItZVe3O4KxN7w3FR1 G41Fz3AZJixXK6IjjGkGSrRqDdmQoGpaobcHpFmqSHwKeZ1hIccjjjRLkqQldkiM5owTFL yjx6tv9QyhTj5Wi79KCNU8NgO7S4zK0Kx4nhDGAjLBw2YyvWP49lsLwabpR7wF7tjZVP7a UMnSo0n+cxDh5Qn3n9cvvYq7GlmeqrzUq+ha/oltvI4ZNbYF+FHaQUVXwhPjbprhsWiLkD Ta8X3zITECSMbtt3uOf7I70ao5nQ8FPnP0wGX70+Tei3OYLecHWnzYyiy6M7ZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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.91 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: 6C31F2A9E6 X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: WQHSGUbeuVXe I'm trying to work with SourceHut (sr.ht) and right now they only accept = Markdown syntax for their readme/wiki files. 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. I was thinking that the export-dispatch had an option for Plain Text / = Markdown, but that doesn't seem to be the case. 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. *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... Either way, I need a method to export to something that sr.ht will = recognize and process as MD so: 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 ? ---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 Jean-Christophe Helary @brandelune https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/