emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to export to markdown programmatically without the table of cont


From: Marcin Borkowski
Subject: Re: How to export to markdown programmatically without the table of contents?
Date: Mon, 02 May 2022 18:52:01 +0200
User-agent: mu4e 1.1.0; emacs 29.0.50

On 2022-05-01, at 22:01, Berry, Charles <ccberry@health.ucsd.edu> wrote:

>> On May 1, 2022, at 2:20 AM, Marcin Borkowski <mbork@mbork.pl> wrote:
>> 
>> Hi fellow Orgers,
>> 
>> I'd like to export a Org-mode formatted string to markdown, but without
>> the table of contents.
>> 
>> (org-export-string-as my-string 'md t '(toc nil))
>> 
>> didn't work (the ToC was still there).  What am I missing?
>
>
> It does seem odd that BODY-ONLY as `t' gives a toc. With latex it does not 
> regardless of `:with-toc'.
>
> : (org-export-string-as my-string 'md t '(:with-toc nil))
>
> seems to give what you want.

Thanks!

http://mbork.pl/2021-05-02_Org-mode_to_Markdown_via_the_clipboard

Best,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]