From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KHSsKizKemSlSAEASxT56A (envelope-from ) for ; Sat, 03 Jun 2023 07:05:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AErIKSzKemR8qwAAG6o9tA (envelope-from ) for ; Sat, 03 Jun 2023 07:05:48 +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 519CAF451 for ; Sat, 3 Jun 2023 07:05:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5JRK-00020G-9T; Sat, 03 Jun 2023 01:04:36 -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 1q5JRE-0001zk-KJ for emacs-orgmode@gnu.org; Sat, 03 Jun 2023 01:04:28 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5JRC-00024G-40 for emacs-orgmode@gnu.org; Sat, 03 Jun 2023 01:04:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DC764240101 for ; Sat, 3 Jun 2023 07:04:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1685768663; bh=ku0HZ2kJ7g4WoAMXzmm1Klf9Al86rj9GoZ6ShyvqnZg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=fVnqa8skpvVpH941IWPLPn5zDCG1hM2SWJr2sF+8pTut+2wF5dniouX3jk29oOWQH fGIQ2IRy717ND+r6X5U73x3M879xaxo4YBSChUNE9rK6ifEdL32L5+cKp9cZtN8W8a dFu5OeeVeDi12OCeg2PTQG7xbzkYSLfZ/i4q5CAnBkFUdtRdN6zE0ibbKWjBlxwILi 4yJIZXmbjAlHLWXFQ/hyLeJ0glJaxxIC10HxpNAKSZSsrtUvf0wthwRL9q74PDROfa pjcAny2rMms2/FhsXw2ijrUxuFd96/ddjG6aOFYRw4iP3tUstbB1gUshtOKOfqCA1m M5c71z1ZgwMAQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QY7871zvXz9rxD; Sat, 3 Jun 2023 07:04:23 +0200 (CEST) From: Ihor Radchenko To: Marcin Borkowski Cc: Org-Mode mailing list Subject: Re: How to export to the simplest possible HTML? In-Reply-To: <87ttvpp68q.fsf@mbork.pl> References: <87353exyyz.fsf@mbork.pl> <87r0qyuyoa.fsf@localhost> <87353dr73o.fsf@mbork.pl> <87ttvpp68q.fsf@mbork.pl> Date: Sat, 03 Jun 2023 05:08:53 +0000 Message-ID: <874jnpdtei.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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-Seal: i=1; s=key1; d=yhetil.org; t=1685768748; a=rsa-sha256; cv=none; b=W6dqNeTG/W+iOBLrIGvFZ833SARy5KfxQvi1hzobEKJR06vCstwJcUu/pTByBkq/cu7Y0N Pt4+n0UbM1txyqrVx6tCPPUGNESdXjUrDe31dJyJCa1lLVf52q1P/93h7OYK783YdVFcf2 qFV76UTYL/Gb0+v2iuVVaYEqszYK5h/AKWhhOQaGejvq5f0ZvPpPGuVAEacwQo2ByiGWhu yyP78vDhQ5TnSucSHLfhgsPPRWt5teiVL8Th7zOa/5omSZNGylkKl9EXEXqR2pH78k0Ned 8XIX/We7KDKJOzFbQZy9qz7tYjoU3ef8pBzNLTUnNUM0IjbpnjV6mTAFOWJSvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fVnqa8sk; dmarc=pass (policy=none) header.from=posteo.net; 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=1685768748; 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:dkim-signature; bh=7MB10wXEeze0jCPXuEt1vMAWxxfiDv8U0sSpssReSUg=; b=B8UpKflTB+GviwUqQPFYuzHIIbBFmVYV6wsvlfIeorD+5ROUYEeogqigxzMBNc6pxODZjl StaNiYSH/0+lBAY7ig3TuFS1JetW6t2kPjeDnvn8NlvvVPvHnfSFcast8N3YMZnFwZaeM4 54vMOK45iq7nNs/1XPMDp8nGBqL2Jga1zg6t+BusjUID2JIy1XbF/8m36oq9bTE7uL2JDm tBTILQfSXCUqJbXOh2Lb8mbWZyijdogg+m10QAceRtwdnCqT+Dm5wd//IK9MKwjL4p3PLz fmwHGlzgZZos14hFHAiZqpX1QMchTSF4FGLGc+hS8TVcrGntd5iOgMVTAHqurg== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fVnqa8sk; dmarc=pass (policy=none) header.from=posteo.net; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.44 X-Spam-Score: -10.44 X-Migadu-Queue-Id: 519CAF451 X-TUID: TulpM4gZWF12 Marcin Borkowski writes: > On 2023-05-30, at 20:45, Marcin Borkowski wrote: > >>> Just use `org-export-as'. >> >> Thanks again, I didn't know about that function! > > I tried playing around with it, but it has one drawback - I can't use it > to export a subtree containing a link to another subtree, and that is > something I will definitely need. (I can see why it works that way - > for that to work, I have to somehow make sure that subtrees containing > targets of those links are also exported at some point in time - but > I need another behavior...) AFAIR, ox-hugo implements what you want here. > My current idea is to go with a custom exporter derived from the HTML > one, indeed. Is there a better approach? You can loop over links in the exported subtree and export any extra if necessary. For example, in the `org-export-filter-parse-tree-functions'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at