emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] Folding bug using org-info.js with numbered sections [9.6.15 (


From: Ihor Radchenko
Subject: Re: [BUG] Folding bug using org-info.js with numbered sections [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.3/lisp/org/)]
Date: Mon, 03 Jun 2024 14:52:14 +0000

Felix Esser <fjesser@mailbox.org> writes:

> I want to export an org file to HTML and include the org-info.js for
> the possibility of folding headings in the outputted HTML
> file. However, using numbered sections breaks this behavior. This
> problem has been addressed before but without a solution and without
> referring to numbered sections
> (<https://lists.gnu.org/archive/html/emacs-orgmode/2020-04/msg00373.html>).
>
>
> Here is the minimal content of an org-file producing the problem using `emacs 
> -Q'.
>
> ,----
> | #+TITLE: Without Title there is Another Problem
> | #+OPTIONS: num:t
> | #+INFOJS_OPT: view:overview
> | 
> | * First Headline
> | 
> | This wants to be folded in HTML but it doesn't work
> | 
> | * Second Headline
> | 
> | Same here.
> `----

> In the produced HTML file it is possible to fold the table of contents 
> (either by clicking on it or by pressing f). However, it is not possible to 
> fold the section headings. This bug happens with the original org-info.js 
> (<https://orgmode.org/org-info.js>) as well as with the org-info-src.js 
> script (<https://orgmode.org/org-info-src.js>).

Confirmed.

> In order to use org-info.js when exporting with numbered sections, I found a 
> working solution with the following patch applied to `ox-html.el':

Thanks, but this is not a good solution. We should fix org-info.js
itself rather than trying to patch ox-html.

Unfortunately, org-info.js does not have a maintainer (and I am not
familiar with JS). So, we cannot offer much help here.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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