From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0PUpOC7KkmIMRwEAbAwnHQ (envelope-from ) for ; Sun, 29 May 2022 03:19:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oEsjNy7KkmJ+ngAAG6o9tA (envelope-from ) for ; Sun, 29 May 2022 03:19:42 +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 8F8A33E945 for ; Sun, 29 May 2022 03:19:42 +0200 (CEST) Received: from localhost ([::1]:50562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nv7an-0004iu-Pj for larch@yhetil.org; Sat, 28 May 2022 21:19:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nv7a9-0004iX-5K for emacs-orgmode@gnu.org; Sat, 28 May 2022 21:19:01 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:33741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nv7a6-0005Wk-Sz for emacs-orgmode@gnu.org; Sat, 28 May 2022 21:19:00 -0400 Received: by mail-pf1-x42f.google.com with SMTP id 202so7614466pfu.0 for ; Sat, 28 May 2022 18:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=2sicdqaYWrQqkCouBCofJdgBEF1iEY7cjs0j+2k3dzc=; b=p5IC2dwlBUFCRSC07gr7n/B1+zHd/m1Di7AaKvBMs5MUM2Kpw3+fOYkJ+IS7EmWI3e adn6CLFsYZ9O4bvg/6044tiGqIrK85JAEjI+lIv+K0v8e+wSK+9dF2+jMNzjw/pqXdx5 X9oz6nAehOrkddg+y04V1rbnV8DooqNmgIsYSCzOF733ih6cCusNEO49HoFw/ODX/Wx1 ABp5YBl5sE4VyHoe0mUn45gdZNK+T9Cws1lw18LXbqFo5Pfs5sKy/claTB4LzKTUWnfW Bpab4LNJKsf4M4MG04b3SyTF8Vovm2iO5biE43vWVLjlnk4bHf0wQm78CDsNg5MFNrYD yX/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=2sicdqaYWrQqkCouBCofJdgBEF1iEY7cjs0j+2k3dzc=; b=pdVa5hgELGkqvqK5Llfi8t9Ve2MUjaQN9da03Yg1uEEudZte85E3swoYomyNiASgM4 Ss7Mzh+vUKw8UGgMLzDsGX3i7w0Pz6APoyIQSNxS3AwEkqrHJeonDiEHWUXJds8VOd59 YY9HwzjtfT4pYx/9I04RZkdzuH7182mWzmpOSfrcsSNVCaEHe/cJZo1OArHiM/JDEiAh tpEGHaxnJMMDnmJ1Ja6GO9qnzYFq0fasya85mWFlWWO4XWQPjHdpb0z4BQyJ3PC+loPm ML+f+5ERbAUs8/UfjpGRxYojyAPJ/gmk3jG5vkuRVEHte7qa/lKhXM9GE9IwdydGmrOi NaVQ== X-Gm-Message-State: AOAM531NswK/cttY/CjrhLIDpq+l2KitcuqcdhFzRFaRP1qkMJjOYtFc aU9y3SyIGeZiCSy+celTzFg= X-Google-Smtp-Source: ABdhPJxOur+kIhcXVeF16U2iHw21/D9sGHr9HJ9vwWuyfcNK9BdbuMhCyreuPBPkPDXLkVk84OrPhA== X-Received: by 2002:aa7:888c:0:b0:505:7832:98fc with SMTP id z12-20020aa7888c000000b00505783298fcmr50254490pfe.0.1653787136951; Sat, 28 May 2022 18:18:56 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id a13-20020aa795ad000000b0050dc7628138sm6200186pfk.18.2022.05.28.18.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 18:18:56 -0700 (PDT) From: Ihor Radchenko To: Ypo Cc: Samuel Wales , Timothy , emacs-orgmode@gnu.org Subject: Re: # Comments export In-Reply-To: References: <875ylpzmoh.fsf@gmail.com> <63167d83-ce29-f7d9-eeaf-38573b2b4205@gmail.com> <874k19zloo.fsf@gmail.com> Date: Sun, 29 May 2022 09:19:36 +0800 Message-ID: <871qwd879z.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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=1653787182; 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=2sicdqaYWrQqkCouBCofJdgBEF1iEY7cjs0j+2k3dzc=; b=A68MK70k3VFd1PS+cnO3cDW9hW4y5Sj6tFNUW6mHDPKWkcnhRMyvCrP1/SwHamDPpPh3Gj +lhd4wrxqjq/0HTq9pjSwHdT4O84V8bG4l3SLjvpbqmo4sK/Fr+5AmCbfDcweOedkDEjp6 5ePc5+xkY9Z746D6WuD8XmxPhrUQU/IhQevGwetL7oYYNnzZdNzyeqAnEOh/+QMwjWzvhN S6xFqcXk6SXI81/VGhoBL2yk8Amt0UZLGF/MAxsn8PuXulhA9SobatNHV+7rzYnc5g+LcI 2tQ1OrxrSfixerx2mKTus4Krg8fN5o1EiX28rXVWsZWSgDpAh09i0jB5r4O0mQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653787182; a=rsa-sha256; cv=none; b=GGw9mdZG6n+ECAeKbsld3Wthsa5yadxOsPUA/EVh0aON8ZDBrQ89TnTkD4Tg717gQirIUZ e29lAGBgB3pGYAAhWnRmvw/H8X9m5bRlmszxHY9Q56B95ZD1AG3dU59OwdMNuUXVOOo6eu verW/PXyl8OzmiHqYXDtrls0kPiO4neVgZX4Vt7flsJB8HaggTYmGwNAyW4vkRX/h+OcRM +ChoRpJYrJ82oZqg0kbAzJe+jfNLda5/HzBIr/VlEwgel4IKBxyOyKg6ZsvtFQSKAJAorG SyztG2iXqx9f5eKCv1irT/a1Vfv2gBVOSTcf8qiNhYM3E+nP/Xo/UfUgWz8nmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p5IC2dwl; 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: -4.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p5IC2dwl; 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: 8F8A33E945 X-Spam-Score: -4.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: hWB5rqcXc7XS Ypo writes: > I wanted to export my # comments so I could share my notes with more people, using HTML export. I would export all of them. > > But, as it seems not possible, I think I will use footnotes. I liked # comments more, because their face can be customized and because they are nearer to the commented text (although footnotes can be moved manually wherever user wants to), # comments are like more "natural". It is actually possible, but you will need to write an org-export-before-parsing-hook that will convert all the comments into exportable elements. Not tested, but the hook might be something like (defun org-export-replace-comments (_) "Replace all the comments with note blocks." (org-element-cache-map (lambda (comment) (setf (buffer-substring (org-element-property :begin comment) (org-element-property :end comment)) (format "#+begin_note\n%s\n#+end_node\n" (org-element-property :value comment)))) :granularity 'element :restrict-elements '(comment))) Best, Ihor