emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: feature proposal: export to html headless
Date: Sun, 26 Jun 2022 17:52:49 -0700	[thread overview]
Message-ID: <CAJcAo8sXarhZhznSbx_qFz0FuAB7Yf3LDYpYKjh2t=P=M+gY9g@mail.gmail.com> (raw)
In-Reply-To: <87tu87iq1a.fsf@mat.ucm.es>

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


  reply	other threads:[~2022-06-27  0:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-26 12:10 feature proposal: export to html headless Uwe Brauer
2022-06-27  0:52 ` Samuel Wales [this message]
2022-06-27 12:11   ` Uwe Brauer
2022-06-27 16:11     ` Max Nikulin
2022-06-28  6:59       ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJcAo8sXarhZhznSbx_qFz0FuAB7Yf3LDYpYKjh2t=P=M+gY9g@mail.gmail.com' \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).