From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SNM8Fi0DuWXyOQAAe85BDQ:P1 (envelope-from ) for ; Tue, 30 Jan 2024 15:09:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id SNM8Fi0DuWXyOQAAe85BDQ (envelope-from ) for ; Tue, 30 Jan 2024 15:09:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=p9b6bP80; 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=1706623789; 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=0TSmIJU7sXZY3HqbvSelZVa/YsrvGm66d7TJFRdnmXo=; b=RyOwHNXLsW+VK1DVXHRyPZmEFcx4th2nGqh7ifuA+b1I6HiP6tq3WCZSXCGU7uCjh57eQ5 wcbA+Uo86GEywm5Hqd2YyP9p3DsK8x9dCVqtb40weEu2yVUhn1CtBhJntbS3DLZtwyqIAU zHz5qCVlee6iW9W0YeizxowbgmlsXVy8DKpsCSXtR5+rxYfiF1bTHACJbzePuIlflSYQLN 3SF4jt3Yy+gtawrX/uGHJe0wBFbllZtS37dZUvSXGt4RubHwHAsNMTeiGIF0yA/tNGkchX cfpxzFBB6ofs//o3iRJqDGfA0IBJz0TiXgwXkp+ACZjtjeSZmsS4atK7wVif2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=p9b6bP80; 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-Seal: i=1; s=key1; d=yhetil.org; t=1706623789; a=rsa-sha256; cv=none; b=OTZQNruGl5W6UN9TJUK+tSJXWpG9LVJgZCECr2tRR0jBfehHsu7GXSSfLcgLa2eiyEWEXk A4cSLxniBd43pD8YhhurKUlrfiypYxnVAtGaFZ7f0pPSBDEDpA7dKrDKmo3FmTkZiwD/6W UeVTE38eDw7xsYPpVQR9HBXw+zqF9+ioEDf7CImJHzfXKLGww/G1ycJICzmYhJP3nSkRdG BilMdV1EHYVKiVb6sAVAKd/UVxAQpwWjwvM7MAyuGBI05Flx0iaMT9TVAuulGQFKobJeFp y0GCE/5ODKUO3+K5qY7Vc5eotoEENF2fOxDr4eeucIiKO90wtsLDUKCWB8Tvnw== 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 ED07461BEF for ; Tue, 30 Jan 2024 15:09:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUonr-0004PD-Ds; Tue, 30 Jan 2024 09:09:31 -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 1rUonn-0004JM-GI for emacs-orgmode@gnu.org; Tue, 30 Jan 2024 09:09:27 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUonl-0005gi-IB for emacs-orgmode@gnu.org; Tue, 30 Jan 2024 09:09:27 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 65DE6240027 for ; Tue, 30 Jan 2024 15:09:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706623763; bh=QIJcUJ9NLCP3H1vwyfSBWDHbm2yEO1vRlxVS/JxEUwk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=p9b6bP801bdhtFIFPt/i6Gt+Jx72JpQoJsHyBpgp55Ssl5A06KLZSzp9gonSuqzhf oowWNVB+aoTif12vyglA4NBEn7+OMjA8klOS1PbDHgmzbjt0ew8eRZ0qLpRTGXFAI7 RD4yXLrsBndDCps9c0OfR/RVjGTEV5KjsUCdEF3AjLW0wr0p2snX0uoLokR6QSrdXy pKeUzhPqsoHkYzhVUQtTqNdH3TLHaq/O3cKQYvRF6HTTtTPiaXsxDczNv/QCPzXlL3 Es+0qJYLDGiBxNLy2dImoD8MCLviZ0APkPSYjZR3/x6bApdxmL1sgvLASLbceDF0AW n5OLKm66bBqxA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TPRqk54ccz9rxR; Tue, 30 Jan 2024 15:09:22 +0100 (CET) From: Ihor Radchenko To: Michael Klooss Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-highlight-latex-and-related naive + script renders links improperly In-Reply-To: <36d11398-a259-4ec5-8f2f-3c4c064216db@aalto.fi> References: <36d11398-a259-4ec5-8f2f-3c4c064216db@aalto.fi> Date: Tue, 30 Jan 2024 14:12:53 +0000 Message-ID: <87mssmvriy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , 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-Spam-Score: -7.38 X-Spam-Score: -7.38 X-Migadu-Queue-Id: ED07461BEF X-Migadu-Scanner: mx12.migadu.com X-TUID: pw8GgIQKLos0 Michael Klooss writes: > I have encountered following bug when I set =native= and =script= in > =org-highlight-latex-and-related=: > Expected behaviour: Links are displayed as before. > Actual behaviour: If a link contains an underscore (which is quite > common), then a "subscript" is displayed as part of the link. > > Example: The link > > [[https://en.wikipedia.org/wiki/Harmonic_series_(mathematics)][Text]] > > is rendered as > > _seriesLinkb Confirmed. Yet another bug caused by approximate fontification based on regexps rather than on Org parser. See https://list.orgmode.org/87ee7c9quk.fsf@localhost/ -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at