emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
To: Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode export toggle checkboxes
Date: Sun, 27 Dec 2020 13:08:34 +0100	[thread overview]
Message-ID: <1360dc67-abeb-26ec-4f92-bdc097ba278f@posteo.de> (raw)
In-Reply-To: <87lfeeje5r.fsf@kyleam.com>

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



      reply	other threads:[~2020-12-27 12:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-16 11:36 Zelphir Kaltstahl
2020-12-04  6:10 ` Kyle Meyer
2020-12-27 12:08   ` Zelphir Kaltstahl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1360dc67-abeb-26ec-4f92-bdc097ba278f@posteo.de \
    --to=zelphirkaltstahl@posteo.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=kyle@kyleam.com \
    --subject='Re: org-mode export toggle checkboxes' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).