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 ms9.migadu.com with LMTPS id CIshLYZCkWQRVgEASxT56A (envelope-from ) for ; Tue, 20 Jun 2023 08:09:10 +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 ACcqLIZCkWSIQgEAG6o9tA (envelope-from ) for ; Tue, 20 Jun 2023 08:09:10 +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 17853C57D for ; Tue, 20 Jun 2023 08:09:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBUXA-0004sy-1W; Tue, 20 Jun 2023 02:08:09 -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 1qBUWy-0004sR-P7 for emacs-orgmode@gnu.org; Tue, 20 Jun 2023 02:07:58 -0400 Received: from udcm-wwu1.uni-muenster.de ([128.176.118.7]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBUWw-0006x9-Je for emacs-orgmode@gnu.org; Tue, 20 Jun 2023 02:07:56 -0400 X-IronPort-AV: E=Sophos;i="6.00,256,1681164000"; d="scan'208";a="273637219" Received: from wiwi-ex-1.wiwi.uni-muenster.de (HELO mail.wiwi.uni-muenster.de) ([10.2.21.33]) by UDCM-RELAY1.UNI-MUENSTER.DE with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 20 Jun 2023 08:07:47 +0200 Received: from D-3170L03 (128.176.63.9) by WIWI-EX-1.WIWI.UNI-MUENSTER.DE (10.2.21.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 20 Jun 2023 08:07:47 +0200 From: Jens Lechtenboerger To: Marcin Borkowski CC: Org-Mode mailing list Subject: Re: How to tell `org-html-link' to create a link with some HTML class? In-Reply-To: <87jzvyeoci.fsf@mbork.pl> (Marcin Borkowski's message of "Tue, 20 Jun 2023 06:42:37 +0200") References: <87jzvyeoci.fsf@mbork.pl> Mail-Followup-To: Marcin Borkowski , Org-Mode mailing list Date: Tue, 20 Jun 2023 08:07:47 +0200 Message-ID: <87sfamll8s.fsf@wi.uni-muenster.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [128.176.63.9] X-ClientProxiedBy: WIWI-EX-1.WIWI.UNI-MUENSTER.DE (10.2.21.33) To WIWI-EX-1.WIWI.UNI-MUENSTER.DE (10.2.21.33) Received-SPF: pass client-ip=128.176.118.7; envelope-from=Jens.Lechtenboerger@wi.uni-muenster.de; helo=UDCM-WWU1.UNI-MUENSTER.DE X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687241350; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=MPxsDEUc2L2nhUFozjO/iAH2XSHNmTDEMG2J/U5MwAU=; b=Qnymjq+BwdznoL2h80ySagsaj2JTga/E6sTXM2oql+QXVvrRXG/tfkahP07Xqqz4kYangq EK9k0ytArfPYXhNw8pKXmhYMV+MeGO1v1d106lKjg8wZRUAhk43jh35sAhKFuZnnAyI6Np 2mrK3GIJML4L1fNkj0Hu+4LEaVr+OXpHQehkF9GObY8FUCtvjmKOHuQfGfaXX3hpgiucJ9 Dnf2aTh0OGZTt5CIxWg0XH8wUllrvwZGKm+ukkBfDi87TEKAWtF3FrIE6ow9T3w2UN8Hjm DWnRrw41VRRGQHepZKc7gQ4reDvGTIRBpK5mXNA9BTi8ryUB8qO6CllGoqEy8Q== 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-Seal: i=1; s=key1; d=yhetil.org; t=1687241350; a=rsa-sha256; cv=none; b=aUK4W3sI6EW3xQrUJX+JrxXpf0rkEDs0uYY7RB+jlZ7Df6mtKQIlXfZugrT8lGW4OqtJw9 l2MtOg7nBtgvDbKjAKdCrEDyrsQjdGTbDH/MX1GEyC3Oe5zk8sh3tOmKWEIpio828/bSgp 0Pv3bmiCx9g7ekycJQpAu7z3Kyq+XTZqJobDDGwkRavz6XPuSgHr4vG1RRLu+eYTZZLNgw SCEVwJurzPoTCgTTdgkQT5N0ZqyaQBlsM7SBreT+h1bW0iMzHcAo/xOGE53Vf3ib/MNnp0 6DhUqjro4hYElHfg6FGm9LBwqzf9e5xcwCRl1KV89VB5P7w9y5/VL4jwX9hmjw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.74 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-Queue-Id: 17853C57D X-Spam-Score: -0.74 X-TUID: R/gD52zsWNHD On 2023-06-20, Marcin Borkowski wrote: > Dear Orgers, > > as I mentioned some time ago, I'm writing a custom exporter (actually, > a very thin wrapper around the HTML exporter). I'd like `org-html-link' > to add some class to the links it generates. Is that possible? Dear Marcin, yes, that=E2=80=99s possible, ":attr_html" is read in `org-html-link'. You have to set that in your code, see [1] for an example for classes in my reveal.js backend. Briefly, with `elem' being the link, I use this: `(org-element-put-property elem :attr_html (list newattrs))' Best wishes Jens [1] https://gitlab.com/oer/org-re-reveal/-/blob/master/org-re-reveal.el#L21= 67