fniessen / org-html-themes

Transform your Org mode files into stunning HTML documents in minutes with our Org mode HTML theme. Elevate your productivity and impress your readers! #orgmode #html #theme #productivity #design
GNU General Public License v3.0
2.22k stars 435 forks source link

Fix admonitions invoked with #+begin_ #160

Closed yamanq closed 2 years ago

yamanq commented 2 years ago

My previous pull request only works when the special boxes are invoked with tags. When using #+begin_note for example, the content is lost. These changes should work with both ways to create the special boxes.

Before:

image

After:

image

Source file

#+title: Test
#+SETUPFILE: org/theme-readtheorg-local.setup
* This is a test
I want to add some content before a note.
#+begin_note
To insert a note in the middle of headings, I use ~#+begin_note~ and ~#+end_note~
#+end_note
In addition to some content after the note
** Note created with tags :note:
This is a note created by adding ~:note:~ to a heading. I want it to be in the table of contents.
fniessen commented 2 years ago

Dear @yamanq, thanks for the fix!