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

The display of admonition is strange #149

Closed tanioka256 closed 2 years ago

tanioka256 commented 2 years ago

The contents of test.org are as follows:

#+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup

* Head A

#+begin_note
Note A
#+end_note

* Head B

BBBBB

I exported it to html as follows.

$ LANG=C emacs --batch -Q --visit test.org --eval "(org-html-export-to-html)"

The display of test.html in Firefox looks like this:

image

A section following a note appears in that note!

Environment:

tanioka256 commented 2 years ago

When using revisions prior to 5f74b76 with local clones, the display was as expected.

$ git clone https://github.com/fniessen/org-html-themes.git
$ cd org-html-themes
$ git checkout -b test2 5f74b76^

The contents of test2.org are as follows. This differs from the above only in the reference to SETUPFILE.

#+SETUPFILE: org/theme-readtheorg-local.setup

* Head A

#+begin_note
Note A
#+end_note

* Head B

BBBBB

Convert this to an HTML file as follows:

$ LANG=C emacs --batch -Q --visit test2.org --eval "(org-html-export-to-html)"

The display of test2.html is as follows.

img

This is the expected display result.

olberger commented 2 years ago

This is also reproducible on the README.org file, provided one compiles it with

#+SETUPFILE: org/theme-readtheorg-local.setup

Hope this helps,

tanioka256 commented 2 years ago

The problem no longer occurs with revision d8cf56bb1fa0280fe5b1a2b335dd6637f1964851.