From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uJJVN+96bWcgUgEAe85BDQ:P1 (envelope-from ) for ; Thu, 26 Dec 2024 15:49:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uJJVN+96bWcgUgEAe85BDQ (envelope-from ) for ; Thu, 26 Dec 2024 16:49:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=PLG6uIWd; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735228143; 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=V/Mjnp07vrwBthoqjVJt6Uiozj2kp6G/SPkKNGdW4Pc=; b=qeMZOoXL26LW8qEWLQ3b6wJcA7wxCSfVqp9H+ZeXhnvaRMCoWE4DdJqWGHlN79b1SZApFe 6BHqm+HkvbDQDZfrtiifDixXoix2e9kMAOlDccpl5b1Oq0Rxm5wjbj5gsU9ApA/rmaZGOG 1aZ3Okb57wyhYMFUHfD4XYxt24wqi2P/lzkWUYEOCI4GH/Nv8Lhv0L83c3FCbxotaDdsVi Yvh3U0Vrr/9Y2v2L5kwNwVkGYX2bLGP6Xy8oJsO5XJ9rLA7BTpjztXPnHACDLSJRl113VN kKzqwyz/eVqI0d9s5KT71CCqvIFzdoTy11Hzl0KlAWM4hvNoYVKwzcPT7K1MnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=PLG6uIWd; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735228143; a=rsa-sha256; cv=none; b=QMTzYFqunDgtyOzJJVQI8QtJgO8pWbUhZfcYcL9bcoLeumzrS03TKoNOcyNYh0AY0/639s BjR8KcODzC7o6b3qOgAvIeXuOuQLtuSH5cf5rTHpzPIrndoHVbg7Z9dx0I/5zgVUtzzw4K ta9U9zwR11GAB/7zNO6AMoafkTqXV8/L+86m5nNm+Iph+ERShsEo72aQq8hw/Ubd+s2Ay2 uAtHkaHhI9BgSN7fu0iMNfUy2/+07jJZs7X4foaPQzUS9Mnplj9tZzMq0ifwwebI2PPOxN fvTT1zWpG4FmanwOR3ivUF9rOs9qh2zXetETQlgcA7kcI2dgZ/IUENHnUqghdQ== 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 8EE2438351 for ; Thu, 26 Dec 2024 16:49:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQq65-0001F1-4p; Thu, 26 Dec 2024 10:48:25 -0500 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 1tQq63-0001Es-BG for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 10:48:23 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQq61-0001Zw-5e for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 10:48:22 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-21636268e43so5270605ad.2 for ; Thu, 26 Dec 2024 07:48:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735228099; x=1735832899; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V/Mjnp07vrwBthoqjVJt6Uiozj2kp6G/SPkKNGdW4Pc=; b=PLG6uIWdlOo07q6LtWof+1fztKRODz8l88xSSfauR9194I9OjozZv1Dwo0TtGWkT00 4H1/7baJ8DhyUMllGHh/xNn3irvL00m942BRqWENrl7uzxKCK7/JUfDMi3ZitZtJnGhE AgLOojy6nrlcU/JBT0T/y/QukGbqN7/Glumt6qblqmyM0F78/mgndGDNk0iZOVZ9nuG4 yFgIIOFV3Aq4WBkRIhxM/CmfYcJclCUqhdWqN+SoAZQtcaTtVt6NpzfzjTFoXyrVKJ7f Lgtw85ETLHsK7p+OLtQnHdA83x1uCYUOsoZzj+SIVgdqumxb4BIgLzI3MT7dnUVC+J9H RaiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735228099; x=1735832899; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V/Mjnp07vrwBthoqjVJt6Uiozj2kp6G/SPkKNGdW4Pc=; b=jZ01MbIF/nC+XBK2aTbWzLc+TdLRK4Nyn+BNQiGqMpXeCFUb6+vWcb1cg1VTdX6MD5 I7MWki4gSop85llPYVOwigHVneRhQv1vAc+AS7M5h6r5+9njsuc0K07WgH7Qg4Wn0f78 VftkGYfYknjWIj1oT03UTtttMpCuQUQmbfXbA3ObqsuvFn2mSQ976YXPzdUVfXcvuXwN wSMOCrUfdtwMQi91LP/b7z1T5KFj6oc2r3p6tfCn7dUNGcsNgByyY5/SJoSSrkInr/Ha aYTBTki6eOz7eFqoTLv1KkMK8fvi6ZnBK1Z6ZCvLsvjfoBgoKzGH+NJl01XsodGprteL s9Pw== X-Gm-Message-State: AOJu0Yz3jaiUcII9fsH60qTjH9wlK5dYg+XFmnemXVx7CB7uY6e+IEM0 pz6WjkLDEu2ETKG4A2qmlHE0D8cciqgdvjVrYKEcyjoTYtVpcLl1UTY5tA1r2WLvrOyJN6kVzR0 B9Nw6cB5QEz/GHgrHtM5dnzdzfCq/qKLp X-Gm-Gg: ASbGncuwzec7K5sFsS6JrYsxFbkrPbyvNvw7XvL8LmMxyR7DyBzEyE3z98LZ8MgVdc2 K+BvwX7C4jVgMMp9abFuRcMasLgLko/jBV0w= X-Google-Smtp-Source: AGHT+IFv0gWV35O2QN6xZdaofhnsITK0gRh/QMO0u5LiVRTow1uZ7TclT/VDK671dz4To73CRjqEQoNus24SgiwuVX4= X-Received: by 2002:a17:903:2c6:b0:216:3c36:69a7 with SMTP id d9443c01a7336-219e6f262admr326962735ad.45.1735228099089; Thu, 26 Dec 2024 07:48:19 -0800 (PST) MIME-Version: 1.0 References: <87ikr7zxdj.fsf@localhost> In-Reply-To: <87ikr7zxdj.fsf@localhost> From: Nikolaos Chatzikonstantinou Date: Thu, 26 Dec 2024 10:48:07 -0500 Message-ID: Subject: Re: Some hacks on top of org-publish To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="000000000000737876062a2e4655" Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=nchatz314@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -1.47 X-Spam-Score: -1.47 X-Migadu-Queue-Id: 8EE2438351 X-TUID: FyNF4DopGuEw --000000000000737876062a2e4655 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 25, 2024 at 8:47=E2=80=AFAM Ihor Radchenko wrote: > > Nikolaos Chatzikonstantinou writes: > > > Finally a highlight of the hacks I had to pull off: apparently > > #+INCLUDE: will strip away inline backend information such as > > @@html:@@. I figured out that if I write something like > > @@html@@a:@@:@@, only the inner @@a:@@ is recognized and stripped, > > which leaves me with what I originally wanted! (see > > ) > > May you show more concrete example? > #+INCLUDE by itself does not remove export snippets. It must not be #+INCLUDE then, but sitemap.org generation itself, I misremembered when I wrote the e-mail. Here's a reproducer, see attachment. Have this index.org file in its own directory and publish it. Then view public/sitemap.html. You will see that the @@BACKEND:@@ stuff has been stripped away in the first sitemap entry instance, while in the second it is there. When inspecting the generated sitemap.org you will see the following line: - Without italics: [[file:./index.org][index]], 2024-12-26 -- With italics: [[file:./index.org][index]], @@html:@@2024-12-26@@html:@@ Regards, Nikolaos Chatzikonstantinou --000000000000737876062a2e4655 Content-Type: text/org; charset="US-ASCII"; name="index.org" Content-Disposition: attachment; filename="index.org" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m55hy3yk0 KiBIZWxsbyB3b3JsZAoKVGhpcyBpcyBhIHRlc3QuCgojK2JlZ2luX2NvbW1lbnQKTG9jYWwgVmFy aWFibGVzOgpvcmctcHVibGlzaC1wcm9qZWN0LWFsaXN0OgogICgoInRlc3QtcHJvamVjdCIKICAg IDpjb21wb25lbnRzICgidGVzdC1jb21wb25lbnQiKSkKICAgKCJ0ZXN0LWNvbXBvbmVudCIKICAg IDphdXRvLXNpdGVtYXAgdAogICAgOmJhc2UtZGlyZWN0b3J5ICIuIgogICAgOmJhc2UtZXh0ZW5z aW9uICJvcmciCiAgICA6cHVibGlzaGluZy1mdW5jdGlvbiBvcmctaHRtbC1wdWJsaXNoLXRvLWh0 bWwKICAgIDpwdWJsaXNoaW5nLWRpcmVjdG9yeSAicHVibGljIgogICAgOnNpdGVtYXAtZm9ybWF0 LWVudHJ5CiAgICAobGFtYmRhIChlbnRyeSBzaXRlbWFwLXN0eWxlIHByb2plY3QpCiAgICAgIChs ZXQqICgodGl0bGUgKG9yZy1wdWJsaXNoLWZpbmQtdGl0bGUgZW50cnkgcHJvamVjdCkpCiAgICAg ICAgICAgICAoZGF0ZSAob3JnLXB1Ymxpc2gtZmluZC1kYXRlIGVudHJ5IHByb2plY3QpKQogICAg ICAgICAgICAgKGRhdGUtcyAoZm9ybWF0LXRpbWUtc3RyaW5nICIlWS0lbS0lZCIgZGF0ZSkpKQog ICAgICAgIChmb3JtYXQgKGNvbmNhdCAiV2l0aG91dCBpdGFsaWNzOiBbWy4vJXNdWyVzXV0sIEBA aHRtbDo8aT5AQCVzQEBodG1sOjwvaT5AQCIKICAgICAgICAgICAgICAgICAgICAgICAgIiAtLSAi CiAgICAgICAgICAgICAgICAgICAgICAgICJXaXRoIGl0YWxpY3M6IFtbLi8lc11bJXNdXSwgQEBo dG1sQEBhOkBAOjxpPkBAJXNAQGh0bWxAQGE6QEA6PC9pPkBAIikKICAgICAgICAgICAgICAgIGVu dHJ5IHRpdGxlIGRhdGUtcwogICAgICAgICAgICAgICAgZW50cnkgdGl0bGUgZGF0ZS1zKSkpKSkK RW5kOgojK2VuZF9jb21tZW50Cg== --000000000000737876062a2e4655--