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 QJLSANNQZmMvEQAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 13:02:27 +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 6NkGANNQZmNm7QAAG6o9tA (envelope-from ) for ; Sat, 05 Nov 2022 13:02:27 +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 9F956102C9 for ; Sat, 5 Nov 2022 13:02:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orHr4-0004C1-Bf; Sat, 05 Nov 2022 08:00:54 -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 1orHr1-0004AA-VA for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 08:00:52 -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 1orHqz-0008Ra-Fw for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 08:00:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2F718240101 for ; Sat, 5 Nov 2022 13:00:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667649647; bh=EQpclGyeArHOtXe4som1ISiHKms0fxRF9wof7PBJFkI=; h=From:To:Cc:Subject:Date:From; b=QRGdj3xXXwYHOVOVJC6mnlNf/aSk4qcGzDnKiTFxkxeWMz++WEHl02G8GXINNOkv3 XSHwPpnHtnkpFatl8O6OUJ7VNG03KETPLcZ/QZFhGOxgMXnuYZUb/YPRIw2ddKM6U0 tzA7YzUNdNUJmi0BVF1eSZ2VW44dL2EGb8O2bv/fzSP/07bZJtoCLPKI9lVGWOrje/ p5ft/Gd2BLKoZhtQwZiW09sx2Kgalb4Ago5qaVhnsihT4K4cifutyizJAa0nofyP4V 3i26iUQmwXmImpIUL5YzgKz4y163vpl+K9iz94kla7Tl3ix8psrPSNPLm++2giaQpr sxUL380lbKf5Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N4GKS5zd0z6tmQ; Sat, 5 Nov 2022 13:00:44 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: Update Org to MathJax 3 In-Reply-To: References: <87h70ekci6.fsf@localhost> Date: Sat, 05 Nov 2022 12:01:24 +0000 Message-ID: <87sfixk3u3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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=1667649746; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qR9FybJTmln7tPrXwvLIIsh2AZacik1IyB88nHtid8w=; b=KLHz7ZmDRnqvChuZjIMV2axAKk21P6fBu+UrFbDAbkoXyKuQ4DvZOnEaosVYxyF0eXFKGc VsAMiS/Sqh2mj+o0lBwecG/4+gHxFq3JSGANNjAb67e7zxSkduIyMmaTpuSaZi7NHF0LCa M8OBNbCXCKRztujjsplykyveiUQnY4HlEz3xTBu/zPc1a3kfbJFWeR69MR0c9pTTgQaQyZ Fdd/Bt88WRqw8sBbsyr9FyCblR4LLOTAxrwTTe02aaO1lhN5f5eL/0XOGFgsTLeUoegBjO z+XLTYBbMTUvDAvx567NJvfFNrUmw43KLIXgkbqhoIjCKp++KFQfiRtEKZD8oQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667649746; a=rsa-sha256; cv=none; b=QO2vOAZDqgv0TLSiUWDtuDqezaor9vwu5rS5vitv60V8t8etNJdj6azZfeDPyx9D0YNLKP sFgB//zA4kanY/qjBsIk+yheC8iXG2DvD5zGi/mc4K0A5HjFRKZYI21/lDwaT+CKyLtKSB bxmwopngDnWz6MRD5zPpyOwpt6rrTTBlA9NbfMJS+9I3B8JSrfR6oYFlmY10xl3J38VmML 4ywTZSdMVaSoEplZnhL+2b3LTKzJvnQ3pf1vMhkfs59cvJAVN1E2s5GXM2pi7/g1JFa7Ui G6YfV8Vy7VVIdIteswkSUeRplJ/y4WVm3fOOtwRCwcRISXQlS4IGgAIG/98flQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QRGdj3xX; 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: -7.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QRGdj3xX; 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: 9F956102C9 X-Spam-Score: -7.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: pXbqj3tJHYRC Rudolf Adamkovi=C4=8D writes: > Rudolf Adamkovi=C4=8D writes: > >> I will resurrect the thread when I have something to show. > > All right, I have finished the second version of the patch. Thanks! > What do you think? Your tests are failing on my side... Also, In org-html--build-mathjax-config: ox-html.el:1999:40: Warning: malformed cond form: =E2=80=98nil=E2=80=99 I'll wait for a new version of the patch with tests passing before I do a more elaborate review. Some quick comments below. > ox-html/mathjax-legacy-line-breaks-message-in-buffer): Test MathJax. You forgot changelog entries for ORG-NEWS. Also, you did not update the relevant manual sections. > Reported-by: Rudolf Adamkovi=C4=8D There is no need to add Reported-by here. It is not a bug. > +*** HTML export uses MathJax 3+ instead of MathJax 2 > + > +Org 9.6 uses MathJax 3, a ground-up rewrite of MathJax 2 released > +in 2019. The new version brings modularity, better and faster > +rendering, improved LaTeX support, and more. > + > +For more information about new features, see: > + > +https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html > +https://docs.mathjax.org/en/latest/upgrading/whats-new-3.1.html > +https://docs.mathjax.org/en/latest/upgrading/whats-new-3.2.html This paragraph would look better at the end, after you discuss specific features. > + > +See the updated =3Dorg-html-mathjax-options=3D for more details. Please use code markup for symbols: ~org-html-mathjax-options~. > (defcustom org-html-mathjax-options > - '((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.= js?config=3DTeX-AMS_HTML" ) > - (scale "100") > + '((path "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js") > + (scale 1.0) It will be worth mentioning that we change the JS provider. People at least need to take note about different privacy policy. > + (when value > + (pcase symbol > + ('font It is recommended to use backquote `font in favor of direct quote 'font. > + (when-let > + ((new-value (cond > + ((string=3D value "TeX") > + "mathjax-tex") > + ((string=3D value "STIX-Web") > + "mathjax-stix2") > + ((string=3D value "Asana-Math") > + "mathjax-asana") > + ((string=3D value "Neo-Euler") > + "mathjax-euler") > + ((string=3D value "Gyre-Pagella") > + "mathjax-pagella") > + ((string=3D value "Gyre-Termes") > + "mathjax-termes") > + ((string=3D value "Latin-Modern") > + "mathjax-modern") > + nil))) Why not pcase? > + (setq value new-value))) > + ('linebreaks > + (message "Converting legacy MathJax option: linebreaks") Maybe warning? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at