From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kGPKD+bslmRBUQAASxT56A (envelope-from ) for ; Sat, 24 Jun 2023 15:17:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CH2ED+bslmSrAgAAauVa8A (envelope-from ) for ; Sat, 24 Jun 2023 15:17:26 +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 CEA953D26A for ; Sat, 24 Jun 2023 15:17:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qD37z-0005at-Ce; Sat, 24 Jun 2023 09:16:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qD37y-0005ac-8i for emacs-orgmode@gnu.org; Sat, 24 Jun 2023 09:16:34 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qD37w-0004rk-3C for emacs-orgmode@gnu.org; Sat, 24 Jun 2023 09:16:34 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 65A889204CA; Sat, 24 Jun 2023 15:16:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b1_v5crqa-rT; Sat, 24 Jun 2023 15:16:23 +0200 (CEST) Received: from localhost (91-227-196-3.net4me.pl [91.227.196.3]) by mail.mojserwer.eu (Postfix) with ESMTPSA id E88139204C5; Sat, 24 Jun 2023 15:16:22 +0200 (CEST) References: <039d786b-9269-a5ca-a131-c0a361a20a2d@gmx.de> User-agent: mu4e 1.1.0; emacs 30.0.50 From: Marcin Borkowski To: Thomas Redelberger Cc: emacs-orgmode@gnu.org Subject: Re: How to export to the simplest possible HTML? In-reply-to: <039d786b-9269-a5ca-a131-c0a361a20a2d@gmx.de> Date: Sat, 24 Jun 2023 15:16:16 +0200 Message-ID: <87wmzt6lwf.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687612646; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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; bh=asvIRAE4cHD1xmBfzNkyKqz2bZVcdsQ4H3AM2yr4/3k=; b=sqh2Xs4s8UfoRftgrm7sKFFq7zJXRCQUjnir5otgGMK47ERpr3iMNCGS+/EvPXlj76ixRU kDxf9W6qvId9lgdSL3prJQRpJ0UhM5yan9F31st6hjHYouVgFno6j5yjm5sgART7SQ60mH bqENYIFwDTUMAfszI6+ItX2Kg8Rc9lLilr6XJCUejLByLnLrAb9XoNc99TMSpzxE0ylL5s dBbsi8BQF5Wav2flJulvUE49GyECmvFrD0oq9ww39xJ5WLUMzhbGsXHodQnijSG9A/zubn ERN6LtLz9xfGg774pdecq/MAgMmOFnqFQVnokqeBIEGZPa0MVYXTyz1jHtg2MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687612646; a=rsa-sha256; cv=none; b=JzCT/BkkAKETPUvA+WBzJHfEhCmqPhavyxOQdqwdhFhvBT0ehZbHJjmfNPMFKafrWFjMYN KVZeGnfIdl1MKw1Ze/ax5tR3qcIWJ8v8/niwqNGUDZBkKnhskxaukFYQ0TEStyfYCCN5pT R/0NJDCMfFT7MHFfcAgcu8JjFb22awQpMiPvWSrXpqtKWJGzYYIg2AOLnYgnS5lEWZEG6d WQ0h3VoWpGRVzVioLrTnTI1Vzh36KjOG4nVkayTiQAIv3vEz1QlMdU3a842xlIP/1lANdG 8xOGyFsTHk/Z16XOnTh4BSd9hxZ/0TbOeEF7pZYbSlwghYGU6pwA3vMV/asQ2w== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.85 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: CEA953D26A X-Spam-Score: -1.85 X-TUID: TMnE12C54Ki+ On 2023-06-10, at 10:25, Thomas Redelberger wrote: > Dear Marcin and everybody, > > I had a similar requirement for "simplest HTML" and have documented (incl. source code) how I tackled this under > http://web222.webclient5.de/doc/swdev/emacs/orgmode/html > > In summary, my solution is > - a few settings in init.el: > + org-html-text-markup-alist similar to below > + setting org-export-allow-bind-keywords to t > - setting quite some org variables in-buffer/in the org file > - elisp to steer a final XSLT transformation of the generated HTML > > > I had coded a derived HTML export back-end (for Emacs 25.1) and used it quite for some time. > When I moved to Emacs 27.2, the derived back-end did not work any more, hence I changed to above approach. Thanks. I settled for a custom (very simple) derived exporter and `org-export-as` with `body-only' set to `t' (and I wrap the generated HTML in tags like `' and `' myself then). Best, -- Marcin Borkowski http://mbork.pl