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 EMZkHwctbWJXMAAAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 14:35:19 +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 WC26HwctbWLwrAAA9RJhRA (envelope-from ) for ; Sat, 30 Apr 2022 14:35:19 +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 2144033183 for ; Sat, 30 Apr 2022 14:35:19 +0200 (CEST) Received: from localhost ([::1]:44804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkmJi-0001Uk-4x for larch@yhetil.org; Sat, 30 Apr 2022 08:35:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkmHs-0000Wj-F4 for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 08:33:25 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:54987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkmHo-0005OE-NH for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 08:33:24 -0400 Received: by mail-pj1-x1030.google.com with SMTP id fv2so9205375pjb.4 for ; Sat, 30 Apr 2022 05:33:14 -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=mSZEnTG/jZfBvxUmTA7vzXtXkKpWKBwsTO69R+N9POs=; b=miCqNIUU7V0kkqnPxBUxO4ZyfYLJVEo6ySatu6qVHT1sSenUr6iEQD/6P3/Plqn1uz VWhpEGDio2MIHbgrlS8sRPytpGeW0agjO0JvT+/kGNk0h2ziRT0jt9PWCbe9+JMFrVhU dMNr/W14/40/m+rW0uGbSqHNx8tu5YZ5QtBNL+CQG0QmguJncdZteg9zPldoXIZ0znZl 0fmV1eYLMsh5tttTV4zupb7FhxirYX0UI9UDKA8iIwJI5uYPDT1ppKReMwkm/4bsgvQ8 N0D750pu3OrW3KYBbr8HhaLQP7xfXS0pCmxEyg9Fax5zwQmMdWULqarWJFdJJMZe5K4V vycA== 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=mSZEnTG/jZfBvxUmTA7vzXtXkKpWKBwsTO69R+N9POs=; b=bET+K/D81wRvFcY8ThbJilLOZrMk8tozSMH1GmwYd6fwUWpT1t97/FSe2NuYiUM1zG gTmF6JqsrKpkMiKlvncsfAxMWwLh+UHr343h0RxNp1LH4BhME4gYeL24O6kMvxE/gyK2 GvXPqlFwgRo7ono7ZzysrPn0tAZAzEWZaispukttCe39WEXxT7PKz8SqE7IZz2paJ/Sj m9qS1zw96kWZPgQNHXEKBObrQLyA3423RijUEXH3prfNiB4hZ2A7hF5hIzBmO4vCYUNL l8U7wVEjNCTZhLMjZnl+4ShwQEX+PeYB+rMdOd4fwRe0RLA81mUDH2sMdeXN8ZZpSI6d X+9w== X-Gm-Message-State: AOAM533yxyLGibr5+UpOb98iGhXFY943zIpIbS+e3vB0uGf6ff1qfFFt +sKGMObmR6aA/juVsN9YTEI= X-Google-Smtp-Source: ABdhPJzSepZut3QFB9qB3aPuMlrLyntIJxmV11OWMNxBnOBGcNCsz5yxF+PIaDlcTANkUv+/W13+1A== X-Received: by 2002:a17:903:2091:b0:15c:b49b:664d with SMTP id d17-20020a170903209100b0015cb49b664dmr3763258plc.151.1651321993116; Sat, 30 Apr 2022 05:33:13 -0700 (PDT) Received: from localhost ([63.143.61.57]) by smtp.gmail.com with ESMTPSA id z13-20020a17090a468d00b001cd4989fedfsm17008059pjf.43.2022.04.30.05.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Apr 2022 05:33:12 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin 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: <956f9324-a8ea-4766-b0fd-e4dcd364edd7@gmail.com> References: <87v8vng70x.fsf@web.de> <87a6c29aj6.fsf@localhost> <956f9324-a8ea-4766-b0fd-e4dcd364edd7@gmail.com> Date: Sat, 30 Apr 2022 20:34:02 +0800 Message-ID: <8735hu92dh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1030.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: "Dr. Arne Babenhauserheide" , 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=1651322119; 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=mSZEnTG/jZfBvxUmTA7vzXtXkKpWKBwsTO69R+N9POs=; b=pg7Dr9u1p5Si/O9RLJ4otgxr+V3fMpHboc6mOJtRG7ha0iOZBZUiV38TtKUL8fn1pkJ9pR WtqJVdPDDTxyXtdrjn1A+2GFcqTwfvksKdLDDUM/oZwBqSE5Yy8nT842Hj5n2TParGv85g FRsO9vVsffVd+R52aYirlsXWlQA52ftBDFv78tAPtyxODzC4doA+bj8lCwr2nuPDKibF2D 48E+wACiC22kFLy6iiUrywZneHI+snLitAO6fpeFo0A67ziKBSfu27LaaO7QYJTn2Va+D3 VEjcVQ/KpBuysRvlDDryniy9nAaRk4dlcpYfCitEWbiWlLGA9nayQQVB5gZMww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651322119; a=rsa-sha256; cv=none; b=stcxb8Ec5gCnMwzrdnD/VvbFoRdzLwcM13s/pb/SY4qmaKMpd6NnwF12Zgo57I1r6V0Bkt qZrGRE/XyW2lhBP0PpwIMHDoo0Dhvmc57xmAJNKjRnOZAoyYHJIunRKVzkaKkKsj8IH0mM 82vKPrcuUHjbrktnrfsD8XV4rr4wUR0DbaNkp5R8mmc+xbhd+3SYxGL5eVPNpNdgGGJuIs W1DMNhCBaF0afDAX3WQV9pKCaa77UWi2QxlTYSdcUVYpg7Pla4rBPtgL0M6I698ihkkYVt 1WZoqGXU8ll2dKx7e5nf2iwmspi7OJlxulBAn2P65ffCwsLvP9W5NseAnwPPmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=miCqNIUU; 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: -2.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=miCqNIUU; 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: 2144033183 X-Spam-Score: -2.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: XsAtVuBuFHrv Max Nikulin writes: >> Confirmed. > > Nicolas clearly expressed that it is a feature of the Org parser though. > > Moreover, this is a duplicate of another item already tracked on > updates.orgmode.org: > > 2021-09-03 5:17 Dr. Arne Babenhauserheide Bug: PDF Export of Link fails > https://list.orgmode.org/87pmtqp79s.fsf@web.de/T/#u > > The following markup should be used instead: > > /Foo/ [[https://taz.de/!5843294/][/link with a bang/]] > ... >> I consider the above to be at least a bug in org-insert-link. > > Timothy suggested to fix `org-insert-link' somehow in than thread. Yeah. I recall a number of bug report related to this behaviour. Though I wanted to focus on org-insert-link here. We can expect users to change the markup if they type a problematic link manually, but not when specialised functions like org-insert-link are used. In this scenario, org-insert-link should take care about not messing up the existing markup. >> To force Org mode not treat internal /! as italics ending, you can >> insert a zero-width space before "/": /! > > Unfortunately It requires an additional export filter to remove zero > width spaces. Yeah. Right. It should even be an easy patch, which would be welcome :) > P.S. Actually I like behavior of pandoc > > printf '%s' '/Foo [[https://taz.de/!5843294/][link with a bang]]/' | > pandoc -f org -t html > >

Foo link with a > bang

I also like such behaviour, but it would require multi-pass parsing or parser tree branching. Nicolas opposed it. Best, Ihor