[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature proposal: export to html headless
From: |
Samuel Wales |
Subject: |
Re: feature proposal: export to html headless |
Date: |
Sun, 26 Jun 2022 17:52:49 -0700 |
this isn't an answer for you, but it might be useful for a reader for
reference or so. for exporting org subtrees to things like textboxes
on the web that accept simplified html, my own command has this at the
core:
(org-export-to-buffer format ; e.g. 'html
buf
;; async
nil
'subtree
;; visible-only
nil
'body-only)))
for many years i have used the surrounding command to create html for
my blogger blog, to update or post a new post.
[it isn't an answer for you because you want it in the menu. others
will field that. and it's similar to your code.]
On 6/26/22, Uwe Brauer <oub@mat.ucm.es> wrote:
>
>
> Hi
>
> Some time ago I asked whether it would be possible to have a simplified
> html export function (basically I need it to insert it in certain moodle
> forms)
>
>
> I was pointed out to me by the author/maintainer of org-mode that the
> following would do the trick
>
> (defun my-org-export-to-html ()
> (interactive)
> (org-html-export-to-html nil nil t t))
>
>
> So the question is could that be added to the export-dispach menu
> as HTML headless, I propose to use the letter L as in headLess.
>
> Regards
>
> Uwe Brauer
>
> --
> I strongly condemn Putin's war of aggression against the Ukraine.
> I support to deliver weapons to Ukraine's military.
> I support the ban of Russia from SWIFT.
> I support the EU membership of the Ukraine.
>
>
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com