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 0LqcI3Z56F9mZAAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 12:09:26 +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 OAx0H3Z56F9+RwAA1q6Kng (envelope-from ) for ; Sun, 27 Dec 2020 12:09:26 +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 D1080940149 for ; Sun, 27 Dec 2020 12:09:25 +0000 (UTC) Received: from localhost ([::1]:45116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktUrT-00005n-0p for larch@yhetil.org; Sun, 27 Dec 2020 07:09:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktUqp-00005d-DE for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 07:08:43 -0500 Received: from mout02.posteo.de ([185.67.36.66]:49035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktUqm-0006YI-Re for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 07:08:43 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 9A8592400FD for ; Sun, 27 Dec 2020 13:08:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1609070915; bh=Q58BqwFQKRHW90y1ioZzN+kZwsL0zsZGsSy86JrNyQY=; h=Subject:To:Cc:From:Date:From; b=lH845KQjvN9aKvl43Mj8xabLGNcWHcJ/Oi0g6f+svC9o04gilvH6q8CI9tdogu8/M 1iMARfuDE+I/TpQGoluh/TVC/XiZ2oqdpPnFBPaU9X+wS7d/JqQWowjlcMlX7Vp/iJ t6WktdVMk0t6h0yzyxTr4kufFkjiof93W8w72TSJyiFgA3QBgxnDR9mlasFAadG93r a3PWwcgyiFSugVte9iFsZKFLxFs6FRxPfwX82zzMOZfcomXJd4tNl3FZLp8ATy5wxy PM7B5mNJQo2bx+A82MiPEdCdXI5YeRj9odG0Wqxg1T9IbcgFPZPZjAFL1a85rxgjPA Rk6jOvOisPFyQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D3fbR0HMsz9rxM; Sun, 27 Dec 2020 13:08:34 +0100 (CET) Subject: Re: org-mode export toggle checkboxes To: Kyle Meyer References: <87lfeeje5r.fsf@kyleam.com> From: Zelphir Kaltstahl X-Tagtoolbar-Keys: D20201227130834470 Message-ID: <1360dc67-abeb-26ec-4f92-bdc097ba278f@posteo.de> Date: Sun, 27 Dec 2020 13:08:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87lfeeje5r.fsf@kyleam.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -59 X-Spam_score: -6.0 X-Spam_bar: ------ X-Spam_report: (-6.0 / 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, NICE_REPLY_A=-1.619, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=lH845KQj; dmarc=pass (policy=none) header.from=posteo.de; 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: D1080940149 X-Spam-Score: -3.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: qrGfxqizsLk1 Thanks for that! Going to try it soon : ) On 12/4/20 7:10 AM, Kyle Meyer wrote: > Zelphir Kaltstahl writes: > >> Hello Emacs and Org-Mode Users, >> >> I have a question regarding the export options of org-mode. >> >> Is there a way to toggle, whether checkboxes are exported to markdown >> and plain text (ASCII buffer / file)? I did not find any on >> https://orgmode.org/manual/Export-Settings.html and so far I tried the >> following: > [...] > > I'm not aware of an option to control this. You could accomplish it > with a filter though: > > (defun my/ox-md-ascii-filter-checkboxes (ast backend info) > (if (org-export-derived-backend-p backend 'md 'ascii) > (org-element-map ast 'item > (lambda (i) > (org-element-put-property i :checkbox nil)) > info) > ast)) > > (add-to-list 'org-export-filter-parse-tree-functions > #'my/ox-md-ascii-filter-checkboxes) > > > more details: (info "(org)Advanced Export Configuration") -- repositories: https://notabug.org/ZelphirKaltstahl