* [BUG] Stray divs in HTML export [9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)]
@ 2024-03-19 16:10 john muhl
2024-03-22 12:49 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: john muhl @ 2024-03-19 16:10 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
The closing <div>s inside HTML comment blocks appear outside the
comment which makes the exported HTML invalid. For example:
#+title: Stray div demo
Hello.
#+html: <!--
* Heading
** Subheading
#+html: -->
Goodbye.
Produces this HTML (cleaned up to make it easier to read, see
attached for original files):
<p>Hello.</p>
<!--
<div>
<h2>Heading</h2>
<div>
</div>
<div>
<h3>Subheading</h3>
<div>
-->
<p>Goodbye.</p>
</div>
</div>
</div>
Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0)
of 2024-03-08
Package: Org mode version 9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)
[-- Attachment #2: org-html-export-bug.org --]
[-- Type: application/vnd.lotus-organizer, Size: 94 bytes --]
[-- Attachment #3: org-html-export-bug.html --]
[-- Type: text/html, Size: 681 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] Stray divs in HTML export [9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)]
2024-03-19 16:10 [BUG] Stray divs in HTML export [9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)] john muhl
@ 2024-03-22 12:49 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-03-22 12:49 UTC (permalink / raw)
To: john muhl; +Cc: emacs-orgmode
john muhl <jm@pub.pink> writes:
> The closing <div>s inside HTML comment blocks appear outside the
> comment which makes the exported HTML invalid. For example:
>
> #+title: Stray div demo
>
> Hello.
>
> #+html: <!--
>
> * Heading
> ** Subheading
>
> #+html: -->
>
> Goodbye.
Your example is using direct HTML formatting.
It is user responsibility that direct HTML is valid and plays well with
the rest of the document.
Org provides the power to insert arbitrary HTML into the output, but
this power comes with responsibility to ensure correctness.
Not a bug.
Canceled.
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-22 12:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-19 16:10 [BUG] Stray divs in HTML export [9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)] john muhl
2024-03-22 12:49 ` Ihor Radchenko
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).