From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 6AwXMJoDbWI7wQAAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 11:38:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QHwJMJoDbWJ5RgEA9RJhRA (envelope-from ) for ; Sat, 30 Apr 2022 11:38:34 +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 48F8C1740D for ; Sat, 30 Apr 2022 11:38:34 +0200 (CEST) Received: from localhost ([::1]:40654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkjYf-0005CM-Ew for larch@yhetil.org; Sat, 30 Apr 2022 05:38:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkjXJ-00050A-CO for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 05:37:11 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:34759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkjXE-0004LM-9P for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 05:37:08 -0400 Received: by mail-pg1-x536.google.com with SMTP id z21so8245843pgj.1 for ; Sat, 30 Apr 2022 02:37:02 -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=neV3OhzLIz1EG2hrbDhfpNl3msoHOvBOOE/tpvwoBhc=; b=lO6C1RNvJg1vueMQ+lmqWcg9YVcz2Xt+99+mnMrWRmX9eSvuWksvJJchLmWlS5hMq3 esTIbqO8s7vU4hszCgs736YqwoAXpGGnGK0G9F2GMdKzO1by3VaogMTfORDfBHQ0whKH c+kAGVI8O7KXNsr35ALLpgnBfCsqyPL09yIXOuYPkk78fX0MQfKmAH2iNeCDWv56oSyM poZJFOn5+NWmtjsVdgsnRtCrEXs7Fc/YyQmYSK4+GFKhoRICDVGsQOeShefYMy751mOs aLvEMhAdEtX41RwTlpc2FCd27e6RC/Zb2Brn3bO7+39ywwyICMoCh9GNPUIrk+UjZiGb ux8A== 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=neV3OhzLIz1EG2hrbDhfpNl3msoHOvBOOE/tpvwoBhc=; b=KMGbbRLPDQ+fPsggW0wO8pZd8/kttO9nxar4d8swUAB8xxwrII6c2B5FC5rl0SWPtS j+i/4w6QEohDFzrDkxf2nTjo9iijcddtLcB4TL0z2EiGOXVJYJNEBymGZaW2T5tHIGGJ k80cQsDAqjt7A2uIs4GwVJnF9/LoLREjUNEKK9MoKj2iTZuS5nTdE/DUyoN0Lo3HI4IJ GTHt/ZQAKPaeq5Z1NBQxFQ6Pk8I+CjHi4p6NBgrgbiOd5CGjDhW/8zFX3zAHyBb/aU5t E1K5KbKWPFX56UpVEDG3anuotjtWT5b9YtktKDRKBUbQtHLdOewLT8jsqdJJ03aeSgSU O94w== X-Gm-Message-State: AOAM533sXP80/b26JMd11aQ43TbwmKnl7+I6FuoyitYbEPitpbYbdnsi vfU4bPWct4gTpGfZhgONNf9SQR7kyv9hFcwg X-Google-Smtp-Source: ABdhPJzIyWTaXVmepJkOcWL+tTypkQxg2+nmACJnc9T/3D+VlL2L5CgMLZOwuBvlAJB9NCbmXXJE1A== X-Received: by 2002:a05:6a00:2284:b0:50a:40b8:28ff with SMTP id f4-20020a056a00228400b0050a40b828ffmr2842172pfe.17.1651311421935; Sat, 30 Apr 2022 02:37:01 -0700 (PDT) Received: from localhost ([63.143.61.57]) by smtp.gmail.com with ESMTPSA id n7-20020a170902f60700b0015e8d4eb2acsm1081916plg.246.2022.04.30.02.36.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Apr 2022 02:37:00 -0700 (PDT) From: Ihor Radchenko To: "Dr. Arne Babenhauserheide" Subject: Re: [BUG] Exporting italic link with bang inside to html fails to parse the link [9.5.2 (N/A @ /gnu/store/89yvbijwnvsbpa5h33mvbgh1gy9w30n2-emacs-org-9.5.2/share/emacs/site-lisp/org-9.5.2/)] In-Reply-To: <87v8vng70x.fsf@web.de> References: <87v8vng70x.fsf@web.de> Date: Sat, 30 Apr 2022 17:37:49 +0800 Message-ID: <87a6c29aj6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=yantar92@gmail.com; helo=mail-pg1-x536.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: , Cc: emacs-orgmode@gnu.org 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=1651311514; 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=neV3OhzLIz1EG2hrbDhfpNl3msoHOvBOOE/tpvwoBhc=; b=AujaZzdoVJK5cTpkcOn1EEYn8aPbXIYd+WhZ+4KTIUTkhLLcUUYXeYyqVDnNNyAOIBBp5b Glet7y+g/SIWncGwCV1AANqVbWHZwFkXFhNAmYUuYq0cBvwuI+BStOUrowMa5M8ovZDoUj MPC3t2lC5LZieB6zVKBncnZ60P5zyRhUZ7MnQpxYGmMLflXSnjbZ1vEK8MbmngkMXT/Hxx A3M9rceOdJBDxG/ZKtTzwVgRmF1hYllYBrqvbRdeoLCUStjCHuI61ywcS77utNAo7JIwUr j9SM+fLyRvidK/dZmV3eyvRMcytbrc/lM63MqAxp3tiStHHuAhCo8ZeLVQiURg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651311514; a=rsa-sha256; cv=none; b=XdXd5FRsVybHadLOTT6OYuN1nqgR18r/NjctkTBITQCtzjUuJaXalIEiI9AeICnWf8pY17 j/vIvo7GZincXq23rZ1j/+JC6fu0yQxo5RpcV97x9lXR4YOlHu+8powOA11LezPrhlu7dU ofYGBWDEwduFjofFyCSeM4TLvhvC8uFY+RzAZQi55XYoOTcDkHj1ZJjum/1R28SZGh00Qh xdRM7E5eUq9UjZuus+vBuYKLs45qECLOD4hxxgmqQ124oZjHT2pTpeIQfZlx3hqk1fE6nh AUAaS3P/I+GLZhCh/OdpkMvV9pe3Z0sW5k1uFdci5yvtjbsjotJS7GYobfnccg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=lO6C1RNv; 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: -8.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=lO6C1RNv; 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: 48F8C1740D X-Spam-Score: -8.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: g4ylGZWFB7z3 "Dr. Arne Babenhauserheide" writes: > To reproduce: > > - create an org-file with the following content: > /Foo [[https://taz.de/!5843294/][link with a bang]]/ > - M-x org-html-export-to-html > > Expected: The HTML-file contains an italic link named "link with a bang". > > Actual: The HTML-file contains a broken link with only the domain: > Foo [[https://taz.de!5843294/][link with a bang]]/

Confirmed. But with a caveat. Despite intuition, your example can be treated in two ways: 1. /Foo [[https://taz.de/!5843294/][link witha bang]]/ 2. /Foo [[...]]/ Org mode always chooses the first case as it prioritise markup that starts early and ends early. To force Org mode not treat internal /! as italics ending, you can insert a zero-width space before "/": /! So, what you see is not exactly a bug, but non-intuitive behaviour of Org. (I do not like it, but we have reasons why Org parser behaves this way). On the other hand, the example link could be inserted using org-insert-link. If one does the following: 1. emacs -Q /tmp/test.org 2. Type "/Begin italic " 3. C-c C-l https://taz.de/!5843294/ 4. The inserted text is not a link because the problematic /! is not fixed automatically. I consider the above to be at least a bug in org-insert-link. Best, Ihor