emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode export toggle checkboxes
@ 2020-11-16 11:36 Zelphir Kaltstahl
  2020-12-04  6:10 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Zelphir Kaltstahl @ 2020-11-16 11:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mode export toggle checkboxes
  2020-11-16 11:36 org-mode export toggle checkboxes Zelphir Kaltstahl
@ 2020-12-04  6:10 ` Kyle Meyer
  2020-12-27 12:08   ` Zelphir Kaltstahl
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2020-12-04  6:10 UTC (permalink / raw)
  To: Zelphir Kaltstahl; +Cc: emacs-orgmode


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")


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mode export toggle checkboxes
  2020-12-04  6:10 ` Kyle Meyer
@ 2020-12-27 12:08   ` Zelphir Kaltstahl
  0 siblings, 0 replies; 3+ messages in thread
From: Zelphir Kaltstahl @ 2020-12-27 12:08 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-27 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 11:36 org-mode export toggle checkboxes Zelphir Kaltstahl
2020-12-04  6:10 ` Kyle Meyer
2020-12-27 12:08   ` Zelphir Kaltstahl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).