emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Exporting Org file to Html with collapsable headings


From: Max Nikulin
Subject: Re: Exporting Org file to Html with collapsable headings
Date: Fri, 21 Jan 2022 23:46:38 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

On 21/01/2022 19:23, Juan Manuel Macías wrote:
ZIPING CHEN writes:

I may have many things like this in the middle of the file.
************************** a new heading.

I wish to turn all layers of
headings in org file into collapsable headline to html.

Does anybody know a way I can accomplish this?
I think that you need to add javascript and enclose the collapsible
content in a div.
Have a look at info "(org) JavaScript support" 
https://orgmode.org/manual/JavaScript-support.html (I have not tried 
that folding view).
HTML has <details><summary>header</summary>body</details> elements that 
works without JS, but it will require custom exporter.
You should ensure that deep headings can not be recognized as org inline 
tasks. Check ox-html, it may has limit on number of levels that are 
exported as headings with switching to lists for deeper structures.



reply via email to

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