From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 oH/VCkqU3GaUPAAA62LTzQ:P1 (envelope-from ) for ; Sat, 07 Sep 2024 17:58:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oH/VCkqU3GaUPAAA62LTzQ (envelope-from ) for ; Sat, 07 Sep 2024 19:58:34 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=H8nwwQsL; 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=1725731914; 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=iGvrKT+fWPvrVKMKIc4/2XN2dZz8mlNZ65L97z4573Q=; b=jlib1m9QJTQOnyKgt60x1cgpJx5R+ANnLBbfk9E8jlqpgNLChYaqZjHbiQkVr5B1z1FfhN XBOCAiVPgJXowUGTWKWcrsJ7XDPx0E0Wg3XxS0lh7+c4tcTZ9tr69KNIhbGYHCS0Knl314 bYCh6y9PnF6sED4/9kvWDZkcgIIHYp4c7RZV6qWVsAyyYdmicsUxmqIdSeeK3KsWzCsf6w bKWV8vDGUln02KxcMRQiIdgic8R3kqOIoJQOHDgnXeLx1M06JveSR9SxtEwjOXevs0ddiY 2F/3Vw68cmkiT7rOXskQiTUCBofakeDFSi4lccyefiqzG7981qs/aT0dyyiQdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725731914; a=rsa-sha256; cv=none; b=Gcip7LIJxzAn3y/1t7ORPXXLxmxBnI1L/5wL2QMb9SIHgLCMgCUBDP4qLcnMCpTX5wCOk7 ot0z+5rAH7d6VgMynG7Emu7dPgf0theTIbYQjTNn6n64iN9St3fPacijACbX3LP8r5QDbU Hz9M8HVaeOiK0gX/l4u11Khgpon8L2JD2LKWAhmLMZBZpTn+xi+x9wph/JdD/eCj39z+1f 58K+kxeOTUIRSgGjrHkg3XUrbCElNSr9qA4Pd7Y0cYNNx8uFVDFdoTIKDEgc1i9JD3uX+4 HMIBjryFUh7uLfjMwao8VImkU8nPT+dEj/TjBnYuCc/4Vih51sU8JkskV59vvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=H8nwwQsL; 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 F2F3F82D07 for ; Sat, 7 Sep 2024 19:58:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smzgq-0000TP-LW; Sat, 07 Sep 2024 13:57:41 -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 1smzgj-0000T1-MR for emacs-orgmode@gnu.org; Sat, 07 Sep 2024 13:57:33 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smzgf-00019g-Vq for emacs-orgmode@gnu.org; Sat, 07 Sep 2024 13:57:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 176BB240101 for ; Sat, 7 Sep 2024 19:57:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725731845; bh=Up3WFwQ5viBTRxA9oxvkwkK9DWGBiFK+QI3D080o5Ds=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=H8nwwQsLnh7qCg1HrJM36vvD+w3goumWXsnDgIKRqlwVMOE0fSQpRFI8jMavZlbed OgOrpSDFP/N6Q4YyTlGXyOQ+izmdPpzfHcufQBfVPEEPzCOQGE9NlEQyuIXyrH1cZj IvpqL6kIxGMwtQ/y7MAF+B+F03hGvWlSdjpysuHLvCOlhUvWDDiwhbOECUjR3/tSMJ FKdjpjAXctFzlCiI0hBz1UELZRfBRfqXjJ1JpikQQiJhQ/0mCARDq38zRc3Qe7U4i7 0mj3SNWsq5XnU8ksugpnilgPHxNuC8yofAIyzq8B/Bq5JuX3ObV48H1LkIskD7ZyK4 CJ5W46eBUyz8A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X1LQr1RLfz9rxG; Sat, 7 Sep 2024 19:57:24 +0200 (CEST) From: Ihor Radchenko To: "Dr. Arne Babenhauserheide" Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] incorrect HTML export with italic link containing an exclamation mark (!) [9.7.10 (N/A @ /gnu/store/icgsji9268qh5fxlrw0xh8775nbark3v-emacs-org-9.7.10/share/emacs/site-lisp/org-9.7.10/)] In-Reply-To: <87ikve646h.fsf@web.de> References: <87ikve646h.fsf@web.de> Date: Sat, 07 Sep 2024 17:58:41 +0000 Message-ID: <875xr7e46m.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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: F2F3F82D07 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.41 X-Spam-Score: -9.41 X-TUID: At794dXi0Kpk "Dr. Arne Babenhauserheide" writes: > When a link within italic text contains an exclamation mark, the link > text is not included in the link. Instead the [[ ]] are shown in the > export and only the raw link is turned into a link. > > to reproduce: > > - Create an org-mode file containing > /Test [[https://example.com/foo/!bar][Link]]/ > - Export to HTML (C-c C-e h H) > > Expected: a HTML buffer containing: >

> Test Link

> (the same as without italic markers, just wrapped in ) > > Actual: a HTML buffer containing: >

> Test [[https://example.com/foo!bar][Link]]/

This is not exactly a bug - you are just running into an edge case in the syntax. In Org mode, the first matching markup "wins": /Test [[https://example.com/foo/ !bar][Link]]/ "fixing" this would require changes to syntax. If there is a bug, it is in the fontification, which inaccurately displays link where there is none. For fontification, see https://orgmode.org/list/87ee7c9quk.fsf@localhost For such edge cases in syntax, see https://orgmode.org/list/875xwqj4tl.fsf@localhost Canceled, as duplicate. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at