[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-mode export toggle checkboxes
From: |
Zelphir Kaltstahl |
Subject: |
Re: org-mode export toggle checkboxes |
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 |
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