[-- Attachment #1: Type: text/plain, Size: 767 bytes --] 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: ~~~~ #+OPTIONS: ^:{} H:10 toc:2 #+STARTUP: content indent align inlineimages hideblocks entitiesplain nologdone nologreschedule nologredeadline nologrefile #+OPTIONS: ^:{} #+OPTIONS: tags:nil #+OPTIONS: tasks:nil #+OPTIONS: toc:nil #+OPTIONS: H:6 #+OPTIONS: p:nil #+OPTIONS: pri:nil #+OPTIONS: prop:nil #+OPTIONS: todo:nil #+OPTIONS: stat:nil #+OPTIONS: |:t #+OPTIONS: inline:nil ~~~~ Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl [-- Attachment #2: Type: text/html, Size: 1205 bytes --]
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")
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