* Export org to just body HTML
@ 2021-12-28 20:44 Thomas Ingram
2021-12-28 20:51 ` Kyle Meyer
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Ingram @ 2021-12-28 20:44 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I was wondering if there is an easy to export an org file to HTML that
is just the body of the HTML document. Or to put it differently, just
the HTML formatting that is actually displayed on the page and no extra
metadata (no DOCTYPE, html, head tags etc).
I often need this for inserting HTML into existing documents or for text
boxes that support HTML formatting.
Any help is appreciated, thank you.
--
Thomas Ingram
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Export org to just body HTML
2021-12-28 20:44 Export org to just body HTML Thomas Ingram
@ 2021-12-28 20:51 ` Kyle Meyer
2021-12-28 22:11 ` Thomas Ingram
0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2021-12-28 20:51 UTC (permalink / raw)
To: Thomas Ingram; +Cc: emacs-orgmode
Thomas Ingram writes:
> Hello,
>
> I was wondering if there is an easy to export an org file to HTML that
> is just the body of the HTML document. Or to put it differently, just
> the HTML formatting that is actually displayed on the page and no extra
> metadata (no DOCTYPE, html, head tags etc).
>
> I often need this for inserting HTML into existing documents or for text
> boxes that support HTML formatting.
Have you tried selecting "Body only" when exporting to an HTML buffer?
With the default bindings, that'd be 'C-c C-e C-b h H'.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Export org to just body HTML
2021-12-28 20:51 ` Kyle Meyer
@ 2021-12-28 22:11 ` Thomas Ingram
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Ingram @ 2021-12-28 22:11 UTC (permalink / raw)
To: Kyle Meyer; +Cc: emacs-orgmode
Kyle Meyer <kyle@kyleam.com> writes:
> Have you tried selecting "Body only" when exporting to an HTML buffer?
> With the default bindings, that'd be 'C-c C-e C-b h H'.
This is close to what I want, but I lose the title etc.. Ideally I'd
like to keep all information usually printed in the HTML body.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-28 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-28 20:44 Export org to just body HTML Thomas Ingram
2021-12-28 20:51 ` Kyle Meyer
2021-12-28 22:11 ` Thomas Ingram
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).