From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OI5qJJskZ2OrYgEAbAwnHQ (envelope-from ) for ; Sun, 06 Nov 2022 04:06:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YOuQI5skZ2NLGwEAG6o9tA (envelope-from ) for ; Sun, 06 Nov 2022 04:06:03 +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 2B1653DACE for ; Sun, 6 Nov 2022 04:06:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orVyP-00029P-Gi; Sat, 05 Nov 2022 23:05:25 -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 1orVyM-000290-UF for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 23:05:23 -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 1orVyK-0006xf-Qc for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 23:05:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BF929240101 for ; Sun, 6 Nov 2022 04:05:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667703917; bh=RpUvRdxT/xum2LcEEKOwg6T9xNxhaKC/wALLAzO2EOA=; h=From:To:Cc:Subject:Date:From; b=O5NxAmtLB1LCucihRPzl00XTORb9ZJK+ie7nQivgiBJIsGNDiDo/XBi3f8GOaKEF2 SSQX7popERwkYqc7LKp10aQKoj6dZEvvXE+lxvhSyTSJA71nqGcXpfjzKKS2VQ/ysV W5POi90RN4WW8DE3ZNnpMcYrPMyNbdpkZBEkLq2+mLc0x+bfkuLOTfNx1L/8kvWpEC 2ztuMb81kH+4YXDfyZWG5Q1wBPBAXoKcERkXJn9pkZbgKnE3TAtDq90g08TYMYZECW JFo+JVijCX6n6lqMNyEuQPsKJIEI1bCbt0smQ5k3NO41mvTJLcC2fP4bNRbxTlRdXM 67okhWVNeT7uA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N4fP73DdQz6tmr; Sun, 6 Nov 2022 04:05:15 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: [BUG] Escaping "<" and ">" inside math blocks when exporting to HTML/MathJax (was: Inequalities in math blocks) In-Reply-To: References: <2477519.1633606219@apollo2.minshall.org> <874k9tdlto.fsf@gmail.com> Date: Sun, 06 Nov 2022 03:05:54 +0000 Message-ID: <875yfsu6i5.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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667703963; 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=CeruPLTXFK4NHmGer3GHnC4oH1hlebkeRaUO1rDqR1g=; b=nCbEBm1owc5CJEKOf/g6Kt29MrGhYAS6Tn3+wbF1RncgOXAGCq22l4mPI9TKv88Cyz/Ckw yrb21dsWeijcURGfX7pvN5vkMOUMQnzdrX0mQAO4FAnWBF6RPfX4rATA689+j0PCF4yWp3 HCrvt9BViSAuSlL05dxlJj/XBK/7C+s267U+ApV8q5+xSc8SenTutALyA0G7rsG248mdz+ Jnhn7nikimi0/PyTQUMoCFx5C60gHRN0hGjeyrrVYPAMbM7RLGfsKhjCq+lcXKeNxGxWGy G6NcbrmyeynY10ppr+zyJ1NNY7NfmfBwSC4KO4R5D83/j3ic+uOHp9U48ASV3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667703963; a=rsa-sha256; cv=none; b=OkgtVWH3mJmmGMxspzDc1iif14nnNGmkm1ZR7KciOqjEkxI/QIbuRUX0g2HXq7WOc4JsBf SQqpMftSpHIMce/JCMGHjwMSOzJsYzQZ/DYM0dA6oPPJ8sdRxFMnM8ut0B2TOcND/7ithB yOzyE3xCrdoKDMY9bmUgbCzR4jCUj396uSEKlR5X0SP0qNQoi+uDrzd3GlmGxHgl+sXe67 AHcL8QN5v8t6qbNXEBwuR1pzQmWNMsgXDIhSvdsx9Ny/7KhZ+uBfDKtHYAL1ZF5q+dlMkX VlYespCSGJYimUFUGjreLGsD18XQ17svCY1JiuD7LTIc+8fCd/xvGij+P4/SYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=O5NxAmtL; 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" X-Migadu-Spam-Score: -2.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=O5NxAmtL; 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" X-Migadu-Queue-Id: 2B1653DACE X-Spam-Score: -2.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: KZDf+s9uamcA Max Nikulin writes: > This is a reminder of an old bug. From my point of view it is serious > enough, but not release critical due to its age. > > &<> characters must be escaped as HTML entities when LaTeX snippets and > blocks are exported for MathJax > > Form my year-old notes: > - =#+options: tex:verbatim= properly escapes symbols. > - There are functions that performs such replacement in ox-html and > ox-odt, but `org-format-latex` resides in org.el, so some refactoring > and backward compatibility stubs are necessary. >From my understanding, all we need is to fix `org-format-latex' by calling `org-html-encode-plain-text'. Could you please elaborate about refactoring and backward compatibility? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at