From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UJs6Ly6+EGLiHAAAgWs5BA (envelope-from ) for ; Sat, 19 Feb 2022 10:53:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SOXNJy6+EGIYKAEAG6o9tA (envelope-from ) for ; Sat, 19 Feb 2022 10:53:50 +0100 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 52A891214F for ; Sat, 19 Feb 2022 10:53:50 +0100 (CET) Received: from localhost ([::1]:53640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLMR2-0003Ak-Te for larch@yhetil.org; Sat, 19 Feb 2022 04:53:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLMPu-0003Aa-Ho for emacs-orgmode@gnu.org; Sat, 19 Feb 2022 04:52:40 -0500 Received: from mout02.posteo.de ([185.67.36.66]:42565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLMP3-0003jK-K2 for emacs-orgmode@gnu.org; Sat, 19 Feb 2022 04:52:36 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 03F84240105 for ; Sat, 19 Feb 2022 10:51:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1645264300; bh=FdillchdULnJ3vcAEcTG/+1456xppbuZUccgVSLWK98=; h=From:To:Cc:Subject:Date:From; b=XSpFJ0tyg7LK9lKVvyTeErA7pLL6LtadZQPAea0X+jNQsEk+oFGHdUb+FcUcJRTR3 uKcAZFu5lMlzEVmQWAo3h72QmjwsIgPtiDmXNBbO3YJoeIq+Ffg+G2ZMqDBJF8P+b6 TKAkfSwsJgM18pkEI5x4561fXAqDLA+zUPmXW3aY2QBSh/IGrlb5lfKZyIyGL/dJwq R4kokiLzFYqa8GCBznGFRHa8uCCwx8QHerQzgFJKKl1/tWhUc+DwPYZ/rt9vpP7C5/ qxVVop4e3y1KsGroJGa4H2i0GS3WpYLLk6ivYHJR8vrtaG8UevLkm2avZDl0/GWDuv ebtA4ah9kUERA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4K13k32xWQz9rxR; Sat, 19 Feb 2022 10:51:39 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: Question Regarding Creating HTML Style Buttons With Org Mode References: <086129c3-de30-4e0b-a0b7-6b1c9b0578b6@www.fastmail.com> <871r01i1pm.fsf@posteo.net> <45e958d4-9c0c-4ea6-90b7-433ed9f38d44@www.fastmail.com> <875ypbap18.fsf@posteo.net> <871qzzaofq.fsf@posteo.net> <9c3009fc-3d69-41dc-ae61-0d60e10f1598@www.fastmail.com> <87r17zb3db.fsf@posteo.net> Date: Sat, 19 Feb 2022 09:51:37 +0000 In-Reply-To: <87r17zb3db.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Sat, 19 Feb 2022 09:41:04 +0000") Message-ID: <87mtinb2vq.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645264430; 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:dkim-signature; bh=tnHyivI7NLX63H3RtqxAURlOIrOb5LGfm9WqtY2c/7g=; b=ojUseme9Rx7+3igHCa5iusEnKRsUrO41EBn2iX9pZw3bXawwHdbTogwIbKFO/TCCZF5TrQ PG1cQ+5uPMiYlEK2C3kBpKdQ6kF8ceemajZHKDyM0Vu8LNIMGYLRKITf1b52mz2wOezylu 442KCY+C8i6SscsAICUgXgZtwiGhLumrz0X0rAlKjhwN6qfjreezg5H+2TI1Htl64AdHuy 87tjh2AiEd/nX6mopa3h8e6DgZVofGk/5O0pGiLG2tCdkT4guvEqYJZCboJW5OUY+yCRFt gHTgihERdsfeqMibaO7cRDNbxF5Jvl6mv2faTBU2NZsIvP9YQljUYViTkS3SiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645264430; a=rsa-sha256; cv=none; b=ZSjC8wrU2oyx8KUHxxz/dBzM6z7vYV+OOM2SI4VAEGT8NkH/eA00q5XB6oQklkK7690C3V APGPV47M+AU9pQPHH16Wy6dKtu0x0cpzo3qBO1hCHrlPcJlX6T0l10M8PkOaWlH5V+2Ydk M3pXGHboSxleMdl5zVv/F9pKP4QlMxct0M5KJhz7zEj1zPKbfNx55YzqnSny6LjQoOk71s Tf5WVDuKbkqFD7t4Ea8L8E7H47y5AXIAj0OXQooPweSQ5kz5bWADiI7Z3ayG2Far8//FwW KBbdz/Idhom8rqDqkyyu+/T8BwxWZAIB7elD76pCRAlw9T8vXzt0gVpFBlmt0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XSpFJ0ty; 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-Spam-Score: -4.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XSpFJ0ty; 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-Queue-Id: 52A891214F X-Spam-Score: -4.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: SiyqPG05wRFN Juan Manuel Mac=C3=ADas writes: > If you want to pass the class or id 'manually' to each link, and thus > have more control, you can evaluate this other version, where the class > or id would be added at the end of the link description, after (for > example) "!style": PS: Sorry, this is the correct code: (org-link-set-parameters "button" :face '(:foreground "green4" :underline t) :follow (lambda (path) (browse-url path)) :export (lambda (path desc backend) (when (eq backend 'html) (let ((style (if (string-match "\\(!style\\)\\(.+\\)" desc) (match-string 2 desc) "")) (desc (replace-regexp-in-string "\\(!style .+\\)" "" desc))) (format "
" style path desc))))) Example: [[button:http://www.sambanya.com/artgallery.html][Art Gallery Page Link !st= yle class=3D"mybutton"]] =3D=3D HTML =3D=3D>