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 WHg/J8Qs32ZbxwAAe85BDQ:P1 (envelope-from ) for ; Mon, 09 Sep 2024 17:13:40 +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 WHg/J8Qs32ZbxwAAe85BDQ (envelope-from ) for ; Mon, 09 Sep 2024 19:13:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZByuyCZL; 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=1725902020; 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=eUObQpuGbeNVsCpSeieFNcQoqacww56sHWzA4iXF8GY=; b=TotMBQufPv1e0MHHjVCJ5nSOyPTGi3SGcu4a/WNpEhvbb9dWVSJPdQqjDceu4z7hQNCITJ UQpoMlRUrqHvtapDVD3hllA9PjqhlnOtv0tvEKOXa4U+G5y2ghK4e2yD0LgJYSRJOdsDDD 1PNKHSnjT9pafv4JE/JDQPoD31IRtmhlHtabTVufDqa8bSfs0Pz4MmLjAYimr5vbT31w5k woCgbNMhi1JHhcXluZyrlOQhIJj2W1Z0VAdyDzWYK48VYqIEHjYiF0aqvaZGvSwikYS1WI HUBGUO6wzg3UcSt7LwN02DAZCbZebq8+rVIWcml7Nn+rrDrMhT4R0ppD7+vgrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725902020; a=rsa-sha256; cv=none; b=cQUdxu71c5EiLNE3jr9aRG0S/+W2FMz0sJlHKUv/aZz0/tXS6K2cdd+ABd/9iW4VcY5YCl lJS/qk/1KU4Wik7Xizj60CgIcypB0XL6Fywv/Xj2RUewJUGAejBTra/2ELSlOmaDl0BZWC yQGkk2p4hYJwSMplsrf9Hw2TKSRjkl9Ur/Rfl2kxQZhYgWTvP0X1O5HxJ2kDOL3r/CC+My +q13NE9b/eV/b3R6Ai04DCTHb4HIj6Poq8ILbhGZQc5eTWwYXTw6DMwi4InpDthhf6uNX6 ebBwnnW46ZyTtMFO5wiFaDNhtSX41QTSA3GdFxdZ6wvpWXSz31CQMQ3bam5mFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZByuyCZL; 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" 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 721A48B988 for ; Mon, 9 Sep 2024 19:13:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snhwK-0004Jz-3m; Mon, 09 Sep 2024 13:12: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 1snhwH-0004Jm-VR for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 13:12:34 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snhwF-0004SU-M3 for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 13:12:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 406BE240028 for ; Mon, 9 Sep 2024 19:12:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725901948; bh=5xrX0LiwhvSqqtRlqzLV5uYJNin6ShY7/MGo/0NFBNg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ZByuyCZLxgLhgzKXcvfIl6suN6JtqdpZ1X6RJjuUXymp6deWDRx+369a1fcbJnRQr p+Ev+L2VCOO7l/Oqp9usd3MQED2KTKeLc9VnoW6B+6bDUAm2nYixv3AXJ4YXwuG9tI i64NFT8RzMoM+5rucb3uhY7WAYMsIdmcyPQlhxFhgSC5rYBbJ0z7GPOs6i6Mh8GuNZ 4NSC1v5RqT2l6CynFZjAmZbMxiQQjKR03Yw6GpdG3NUP0CreHklWE/Kk0U7S+WEb2/ eWAF6EMxGDnx8SoYX0zziKu34or9moiM4kqE4ryhIWpb7Zm9kEt5tVlNprOVHc13sb E/9EQ4vCGU5tA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X2YL35Hrtz9rxF; Mon, 9 Sep 2024 19:12:27 +0200 (CEST) From: Ihor Radchenko To: Daniel Radetsky Cc: emacs-orgmode@gnu.org Subject: [POLL] Mark all the tags in HTML export with unique class (was: Adding a class to the auto-inserted
elements) In-Reply-To: References: <87seujpc7p.fsf@localhost> Date: Mon, 09 Sep 2024 17:13:54 +0000 Message-ID: <87zfogpx65.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Queue-Id: 721A48B988 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.71 X-Spam-Score: -9.71 X-TUID: CIbh9PW01UGi We are discussing the way Org formats HTML tags in HTML export. Some of the tags added by Org are simply bare tags, like
below.
  • Low-level heading
    The suggestion is to add a unique class to each tag produced by Org HTML export, so that CSS rules can precisely target various tags. For example, Org can produce
    tag in multiple contexts: 1. when exporting explicit line break \\ 2. when exporting a heading as list item, to avoid merging the heading and its text 3. to separate title/subtitle 4. to separate inlinetask headline from its contents etc... We may export each
    (or any other tag) as
    Pros: Easier to write CSS selectors and possibly to post-process the generated HTML Cons: HTML will become less readable WDYT? Daniel Radetsky writes: >> The fact that some specific suggestion... > > This is an example of "motivation"; a specific concrete use-case that > actually came for the user to demonstrate that the issue is not merely > theoretical. > ... Ok. I see your motivation. However, it does not make any sense to change _only_ one single specific case where we insert
    tag. If we follow your argument, we should do it for every single tag that ox-html inserts. I am personally neutral to having such a change. However, we discussed a somewhat similar proposal in the past wrt LaTeX export and some users were concerned about reduced readability of the produced .tex documents. See https://list.orgmode.org/orgmode/87a65vitbz.fsf_-_@posteo.net/ So, I'd like to hear from other Org users first, because deciding whether we want to add the feature you are asking for. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at