emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Felix Esser <fjesser@mailbox.org>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <877cf6nko1.fsf@localhost> (raw)
In-Reply-To: <871q5hc3bt.fsf@mailbox.org>

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	other threads:[~2024-06-03 14:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31 15:35 [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/)] Felix Esser
2024-06-03 14:52 ` Ihor Radchenko [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=877cf6nko1.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=fjesser@mailbox.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).