From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 wOsMATiTnWP5RwAAbAwnHQ (envelope-from ) for ; Sat, 17 Dec 2022 11:00:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +BPpADiTnWMpEwEAauVa8A (envelope-from ) for ; Sat, 17 Dec 2022 11:00:24 +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 A61534405D for ; Sat, 17 Dec 2022 11:00:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Tz7-00073N-ST; Sat, 17 Dec 2022 05:00:01 -0500 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 1p6Tz6-00073C-Cv for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 05:00:00 -0500 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 1p6Tz4-0006a3-Mk for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 05:00:00 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 63D5D240101 for ; Sat, 17 Dec 2022 10:59:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671271197; bh=UDtHM/dYhtdXX8tRSOIt8VmugQLAwevMSxAm+Lshy7c=; h=From:To:Cc:Subject:Date:From; b=qMH+4F/wYx9n/6q9/uR/Y0+ThMTh8RQsFRFGu96DTLYojdKOPtF7hUME4oTobL96w zH/1J0tjwFzcH+m0jitN2TCJzDV8tkv6p3yeWDbzVd4xb2V6y9LfXlpDT848RvMOjW xVuIxCaSq5r6Rar6uA7I1K/WvgVbCrHDdz31F4qfkB3YyHVXmvDcIF5MomWpLYHwDr KN8LdqnrwGAD9YKwL/aNKI34abzkTi9F7+T+aRSA6sxA/RM30KfVdD9hg0afMwRtB8 qT9fdPVxeL8ATVXGVj/Pk9abhW5wmYSB7qgEQVdw0D7JiLMcozBjJHTU+sQjvC8cbG BANCHoJu0WQxg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NZ1fh6dkgz9rxH; Sat, 17 Dec 2022 10:59:56 +0100 (CET) From: Ihor Radchenko To: Leo Butler Cc: Org Mode Mailing List Subject: Re: [BUG] exporting links with underscores In-Reply-To: <87359fx9mg.fsf@t14.reltub.ca> References: <87359fx9mg.fsf@t14.reltub.ca> Date: Sat, 17 Dec 2022 09:59:55 +0000 Message-ID: <87fsdefizo.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_H2=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671271223; 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=AZa+F9ZUkqcjXnBfto2UFagLNgI7HYS1qIm38F0uar0=; b=FAmDnneZ2uv0smWLW9itg2+x0bwinwlVckSClkqdk8XFKYdve3Bf5+NpgEFBj5NsIaxY+m 6+JbtJuFjfrfLA9x/nvgR3RfM6gfgWdmVQkAWClX1yv1jHIEJ6YooVIGqvmQLoQ7yDTnSl IuzX/COUH23Whgld65reWL4784nuW9uD1lXKtDKFikeo4LVnnSOLXPJgZ3x9N3CEQVM/Zb e5oUldBmAi9nkM/Ag5leFIrD5PX+5nzab1hLRxHciarVuIfS99obP0XzFJslv5bBT0s9qp gceJ1LWYL9vkjiZ9GtE01A+9PemMVd8zboDBlC0G2x6hUnyyGouTd+Vypukzeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="qMH+4F/w"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671271223; a=rsa-sha256; cv=none; b=WUNX/xWAdsAWOkQ4IrFhBPobUaw0I94haGEs2q4KkpsUG6WeJuN3YknE2tpFeGaVZhASY+ IGtiiAqwAbdtF3KdnUEJDdKWs7UOLl4OjnmlH5xGyFR4UNdUNoZVi5jVFRNUWepmC1US9k esychgjacwUQnJYNcH93Q0GVCIJJPbYnMQaw//K20GN06o5j+fwdxfE336zVsbIfgDSvAi nKWkSfPIZZpixUirQ13RFflj39zLpRAd5b/LyPBAMIvfgKIbuHAwSVERW+otwdWaurdnd0 MOMJkVJfTaVbLDXoY1EkHjHATcM01k2PaBA4mmUr5x/5mPA1sY7jFQ1oa351mg== X-Migadu-Spam-Score: -6.49 X-Spam-Score: -6.49 X-Migadu-Queue-Id: A61534405D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="qMH+4F/w"; 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"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: adYXhti73Djq Leo Butler writes: > The manual does not indicate that underscores need to be escaped in > links (and they can't be, as far as I can tell). The latex and html > exporters interpret them as the start of a subscript. > > The link =[[mailto:ex_ample@ex.com][ex_ample]]= is expected to export > to =\href{mailto:ex_ample@ex.com}{ex_ample}= but instead, we get > [[mailto:ex_ample@ex.com][ex_ample]] exports to (in latex): =\href{mailto:ex\_ample@ex.com}{ex\textsubscript{ample}}= This is expected. You mixed URL part of the link and the description. Link description can have same formatting as any other Org text. So, underscores are indeed treated as markup. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at