From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 GLJqDFg9a2MwfwAAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 06:40:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sKBNDFg9a2MnyAAAauVa8A (envelope-from ) for ; Wed, 09 Nov 2022 06:40:40 +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 08BFA3812A for ; Wed, 9 Nov 2022 06:40:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osdoV-0007zJ-7R; Wed, 09 Nov 2022 00:39:51 -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 1osdoT-0007z7-Ep for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 00:39:49 -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 1osdoP-0004oY-5D for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 00:39:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 27422240104 for ; Wed, 9 Nov 2022 06:39:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667972382; bh=RF3Dm78SfEpa5cfEo9ZrxvxUW7sJkBAfhPUMQvtXpLo=; h=From:To:Cc:Subject:Date:From; b=S4/1C6d/mvBZZTOa5/tBFiqxCLQhmhi8BjtJJwY2wEdVe6MKgkUPUW4ywqd6wdAZP FSFarQa8unWKgNmC8Dru/Fh728o73NL24TSgeY/8gtTEzsW1FLJA7TYOu6E3pnfg9b ZGmr3EClY64TU7jBad/x19ea7e7ccRKhmlqPGJiSc8+uQ6e/br31ZAqxcOYgSAgMDN L5k4wufkGowP/novdDfljFoVqxPrPJ4pZrAiOjBOCH/jLeLVHIEPAcUEy/zla0gX98 XYsSSAFOt+ty+tNoWX3+EnQlCkdRPBtsiOtVFlJ29dhdIH3PtflvKSMgbBcYReKJtn fdWLdLV6icwfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6Ygw4ptSz6tnp; Wed, 9 Nov 2022 06:39:40 +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> <87sfixk3u3.fsf@localhost> <87v8nslox3.fsf@localhost> <87iljra2lw.fsf@localhost> <87v8nq10qg.fsf@localhost> Date: Wed, 09 Nov 2022 05:40:18 +0000 Message-ID: <87zgd0adod.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: -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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667972440; 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=0IdEdDiGeLGwy+yKATUI0mH8E1M960ZroOe0zA4qCks=; b=CjnMuOilS0z5RsDWhGzelcO+IaG7iN9shgpiL+IQoA1wmee6fNpvoDH7DknVvBMm5aE0/+ 982Pxtf2nkEg56wtpLStlGIORdy479raLQW6KdL+PQnYlBiKu4lGIIXSIu73PQjteMawZ5 +u3jq3+BwubxUQkRvzz4thAkZ9sQSZyHWFDP/a5Tod/e0ymXeADIvNS+l9RMsVZ4e0nOk/ Zayyhk4Ev38NwCYVI+PlZ27GfmUlSddfD7EPcTojD0Y14nFp2v25hcCCubMqMEj+/UXU7P TSbSdZBB0MZaYjNubzo03BhMnh79edURgnQBs/m2Xg9XawaXvuRS3uehpfGzwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667972440; a=rsa-sha256; cv=none; b=hkO1URN/WP5+1j8lvvMLhu2keDQTWTH0U4Q/2IXyuuKWoaDfFiBwS8E2Ald/QkR0IHd1o1 AMRe0Flvo38kLuRp0vvGTjWBXST4gjisocXJwA+zmrxWT9ivgLOlGcB9r6fjRO/SDnWuzF x3XtzLxJWeihIyCX2Fk8UlZQu/ESbUZLsLCbfWxzff0QTyWgthUV8zhDiMkrMucJOYfNaB LBI03prUS0QWuX3PXA9eMDevCp/EPytFGzmM0Pubuy8UfjoMr8RBn8Y54NDTwUw9u388T5 mvER2GgIldHz/uR4g3U7p2eqTmtmuDlr8YfjiGIKntDC7UeBAbIoW66Vpik8NA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="S4/1C6d/"; 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: -8.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="S4/1C6d/"; 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: 08BFA3812A X-Spam-Score: -8.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: TlVsyvRNUlWz Rudolf Adamkovi=C4=8D writes: > Rudolf Adamkovi=C4=8D writes: > >> See the 4th version of the patch attached below. > > And, of course, I forgot to update the commit message with the new > macro. Please see the 5th version of the patch attached below. Thanks! > with Org[fn:: By default Org loads MathJax from > -[[https://cdnjs.com][cdnjs.com]] as recommended by > +[[https://www.jsdelivr.com/][jsDelivr]] as recommended by > [[https://www.mathjax.org][MathJax]].][fn:46]. Some MathJax display Is it really recommended by mathjax? I cannot find any mention of jsdelivr.com. You may update the URL to something more precise. > #+texinfo: @noindent > equation labels are displayed on the left margin and equations are > -five em from the left margin. In addition, it loads the two MathJax > -extensions =3Dcancel.js=3D and =3DnoErrors.js=3D[fn:: See > -[[https://docs.mathjax.org/en/latest/input/tex/extensions.html#tex-and-l= atex-extensions][TeX > -and LaTeX extensions]] in the [[https://docs.mathjax.org][MathJax > -manual]] to learn about extensions.]. > +five em from the left margin. Are these extensions no longer supported? =20=20 > - (options (plist-get info :html-mathjax-options)) > + (options (let ((options (plist-get info :html-mathjax-options))) > + ;; If the user customized some legacy option, set > + ;; the corresponding new option to nil, so that > + ;; the legacy user choice overrides the default. > + ;; Otherwise, the user did not set the legacy > + ;; option, in which case still set the legacy > + ;; option but to no value, so that the code can > + ;; find its in-buffer value, if set. > + (append > + (list (list (if (plist-member options 'autonumber) > + 'tags 'autonumber) > + nil) > + (list (if (plist-member options 'linebreaks) > + 'overflow 'linebreaks) > + nil)) > + options))) It would be more compact to use `(...) notation. =20 > +(defmacro org-test-capture-messages (&rest body) > + "Return the list of all messages put in the echo area by the BODY." > + ;; TODO Despite its name, this macro has nothing to do with Org and > + ;; belongs to a more general package in Emacs. > + (declare (indent 0) (debug t)) > + `(let ((messages (list))) > + (cl-letf (((symbol-function 'message) > + (lambda (format-string &rest args) > + (setq messages > + (cons (apply #'format > + (cons format-string > + args)) > + messages))))) > + ,@body) > + (reverse messages))) nreverse will be more memory-efficient. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at