From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yLkmKipFdmQ8+wAASxT56A (envelope-from ) for ; Tue, 30 May 2023 20:49:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OLJGKSpFdmRqSgAAG6o9tA (envelope-from ) for ; Tue, 30 May 2023 20:49:14 +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 2932A29D8 for ; Tue, 30 May 2023 20:49:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q44Oo-00011J-4T; Tue, 30 May 2023 14:48:50 -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 1q44Om-00010p-5d for emacs-orgmode@gnu.org; Tue, 30 May 2023 14:48:48 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q44Oe-0006b1-BL for emacs-orgmode@gnu.org; Tue, 30 May 2023 14:48:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 1EA5A976DC1; Tue, 30 May 2023 20:48:38 +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 oROmT0muM6uV; Tue, 30 May 2023 20:48:35 +0200 (CEST) Received: from localhost (178235147065.dynamic-3-poz-k-0-1-0.vectranet.pl [178.235.147.65]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 08A59976E3F; Tue, 30 May 2023 20:48:34 +0200 (CEST) References: <87353exyyz.fsf@mbork.pl> User-agent: mu4e 1.1.0; emacs 30.0.50 From: Marcin Borkowski To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: How to export to the simplest possible HTML? In-reply-to: Date: Tue, 30 May 2023 20:48:34 +0200 Message-ID: <871qixr6yl.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685472554; a=rsa-sha256; cv=none; b=SQH3hCTnh6tDVPSHGZZOd/YZY1pqs1Awk1xvF02gv9iDzDEQ3Btx924lrdAUgiio3gkJc7 bTgP9K6DIiStWHjYjWd4xI29ChtCDl+3Gxc/ZbrvXXBllaGJKb9VmPKB7VSygHzXHeIfoA YS5BNtS6+hLXeZUBCV2FKhBeQktQvsOF8hsehRH/vsbcozkSHPKR6T2kxG3E0Zh03r71Wx wlrk4UmOx8lQG6KoHJMznJUwssoViSNMvGwWQajIVwldCeOtilkdXWfjoiYnPB7/n+svcx A2YjOqbqSB9NsJgi68YXePrGOP4fwdajqyJKG6cRSuyxR5CmazgsvBLCV4yPig== 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685472554; 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=sGHuOy3144KO5SDw1Qy/54PjwQlyL0RmTcStO5iT6hM=; b=YLC4vaajbKjSTiPjvftzTxVXVfgxFi9GUOzC03IxPK0ykzjqfgOD9OFdeGH9DI4krxG/E0 g/Oj/ndsWPcI1pLTIoNkagN191RcZwZYFwHLdtabr0sYcXkQSf+xOMuHayMwAZd1PbZqac ixbmsePV6OgfGrNsSagT1Cf5gvDX3ijdqSvTQSM5U8OBk7NHGD+hIgdwpSsJ+fVdxWBNlf udKslQ9Kjn1q5NRst3n401wpoOuTYPPa29Ya6we6U2GXYKBviT1LyAbry+Qb8wkqithn4D NeKddewehW7fg5QK3VMxjG9RRUBmZUzO81IFOhmCAy71mSSZ11BnUHw3VuWaAw== X-Migadu-Scanner: scn1.migadu.com 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-Spam-Score: -0.54 X-Spam-Score: -0.54 X-Migadu-Queue-Id: 2932A29D8 X-TUID: mJ4zsPbfViW1 On 2023-05-30, at 17:32, Max Nikulin wrote: > On 30/05/2023 10:47, Marcin Borkowski wrote: >> since I'm going to >> call my exporting function in a loop over many elements. I tried >> (org-export-with-backend 'html (org-element-at-point (point))) > > There is `org-export-string-as', but likely it is not suitable for > you. My guess is that you are going to export headings (blog posts) to > separate html files. Correct, dear Holmes. ;-) >> This is /italic/. >> can become e.g. >> This is italic. > > I am curious whether is more friendly to screen readers > https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em Good point. You're right, I'll probably go with `' then. (The reason I wanted `' was that I wan't somewhat atypical styling, namely letterspace. But of course css magic can make `' do this, too.) >> I'm considering writing a custom (derived) export backend, but maybe >> that is an overkill? Any ideas? > > I just have noticed > > (defcustom org-html-text-markup-alist > '((bold . "%s") > (code . "%s") > (italic . "%s") > (strike-through . "%s") > (underline . "%s") > (verbatim . "%s")) > "Alist of HTML expressions to convert text markup. > > You may look into ox-html customizations such as > (:html-doctype "HTML_DOCTYPE" nil org-html-doctype) > (:html-html5-fancy nil "html5-fancy" org-html-html5-fancy) > > I have never tried ox-slimhtml: > Laszlo Elo. ox-slimhtml. Mon, 14 Dec 2020 00:48:27 > -0500. https://list.orgmode.org/41D2E10D-BCFF-4604-8417-B499514AF904@bald.cat Ah, that looks interesting, too. Thanks! -- Marcin Borkowski http://mbork.pl