From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oBsmI5//uGKfSAEAbAwnHQ (envelope-from ) for ; Mon, 27 Jun 2022 02:53:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GKQMI5//uGJ+HgEA9RJhRA (envelope-from ) for ; Mon, 27 Jun 2022 02:53:51 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 257532A788 for ; Mon, 27 Jun 2022 02:53:51 +0200 (CEST) Received: from localhost ([::1]:39744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5d0e-0006fj-T5 for larch@yhetil.org; Sun, 26 Jun 2022 20:53:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5czo-0006e1-HL for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 20:52:56 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:43003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5czm-0006pA-5s for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 20:52:56 -0400 Received: by mail-lf1-x134.google.com with SMTP id g4so13929532lfv.9 for ; Sun, 26 Jun 2022 17:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ElpIoKqEPZjAoJySIh5kzVHFxeBzU4P4C9b5DeEk2EI=; b=XlAvx23FwfxLHOM8VlXnfMyQhWzuSKCoWRNqslj6HR08pdJi/eaensiEnrqI2h/vjw 2teZMxlQYD3gAkek3acqhGFXgNXlsar+OphxXvC5PCcAMcvK9xa7R/Y1krTmrZZxq0sb 8jw5NWPaGXFFBniUKKm+5Ul2R+bt5JrUcmtSImZrE+7PdZFxRSE8N9i3uAsA1w/zNr9Q Cj/csbs9aZBePh/bJowlX1XDrkj2RKDkr595o+gkxII/oZ82GYq8SyDoGP61dBBp5KHo S8+n/mLhSiHMncIDVPfStXZNITw19WXGVZnU/+bjM5tRudJzS+GeszV0pAU7RUMQnttA Ec1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ElpIoKqEPZjAoJySIh5kzVHFxeBzU4P4C9b5DeEk2EI=; b=N3WQ+bT0vrMeMBcS75B+8aG30S8N2DMRq/AnCZetaCKLzvsLFW+CbfOZ3LmUtt5WNk DCF44LZBP3pps9cRkzHSOUVjWUYB2Stqmk3YvOfH78/Tu15i6UqCytMxmsbwBH1BD7P4 5TOTgzSWWb6VRlutWotAxCx8CKQ3TwBrV8T3K5TzP1W4QURhH6fA2J5bi61LlZCXw3wl wDOW1d5Sp+PduNX+I/g1/G5/EO4sJiyO0D+YvcLpjFqLJXatEBwDIT5jecJ0pZVTbA73 HWTQg8O5qIeAjR/TD1k9Rvq4lt1zunEhCtxgksJJd3sVFN7ODA5G9aOxkV+ZBUnosx6B BHiQ== X-Gm-Message-State: AJIora+iA4t7QpFYF4kNekVo8ocI3NDdHiYCXEkni0oOUVltaGQ6KxrM +D8E9+7VRpOg3/RruvqDNbMTliW1tWnXI3ANobNS3kK7onyeXg== X-Google-Smtp-Source: AGRyM1sE3OvBcnWxpJTaaPZ8i6nSXpT/9o2rbB8sjFNnt+Y1LNnzga6VGrCI4Sm6CAE4++Y6jcYWzBNU+CmPn9+yf9k= X-Received: by 2002:a05:6512:3f9b:b0:47f:48b:ae0d with SMTP id x27-20020a0565123f9b00b0047f048bae0dmr6442516lfa.27.1656291170529; Sun, 26 Jun 2022 17:52:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aa6:c110:0:b0:1f4:d994:f6bf with HTTP; Sun, 26 Jun 2022 17:52:49 -0700 (PDT) In-Reply-To: <87tu87iq1a.fsf@mat.ucm.es> References: <87tu87iq1a.fsf@mat.ucm.es> From: Samuel Wales Date: Sun, 26 Jun 2022 17:52:49 -0700 Message-ID: Subject: Re: feature proposal: export to html headless To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=samologist@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656291231; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ElpIoKqEPZjAoJySIh5kzVHFxeBzU4P4C9b5DeEk2EI=; b=cVN7N+MOOjozwU1q9xgu1jngyeuZ4Hsy3zJstnZ22k3oBOWGt2zdGMSksDoz8yYK5318SS sHLmjTJ+xdBzMIWYMgGryJS5AR7L5qn29nqahGE8cnxKBY7vXKtyNJ/LqORVnXP9YbjDjh UyOw0uYW4zIM7VdOzN6SvrVZfx1L/BGn8RCg0S21GEq02MTdllGhTyJI/toKeC+76Ab3rq fprtpNa3+y0mt9cwS9zxQlzjNaHQ4F/c6aeutFAKa7d+J7x1gbBRJIjkD/BqlLWDzpltk4 nZRjqz3ZA/YoYz1A4nv1h8OKgJ2gRzudiQgRB84MjLo1+6qijQhOkz5Hf6lgHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656291231; a=rsa-sha256; cv=none; b=RLsjSJfuah9k1Nd/d02bVe53wsg2rPF/vZeUSTjEP748y+aqPaw0AeWsP4jTOL1ms3sskb Ub7ZWE43hEzKm7iwJyO1OqSXcZDeXQG9cz66jr2Oit4KUrhLigbkp6P5PgxyoBbUG2POGB CUAFPUBgYpTsBdXpzLy9J64grM/1i7H/XcsN4NMoBEv9INuXzqGyhk8hkFmXGMXlnNWElR AfNol7aAGADzg9DmvwSX59+BufTDhvu3Bh4x3bSs0z/ngI6q7F6oDa33wqeGim3LZJmVVU MUf2ztBfOfhKB+vziIzVI5rT8VrRsoT5cav5xPAC/V1ElkwnR1/L5XAMiNcvbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XlAvx23F; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XlAvx23F; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 257532A788 X-Spam-Score: -5.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: PgfWx3S4cZFl 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 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