From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MCYPGPtpn2FLzQAAgWs5BA (envelope-from ) for ; Thu, 25 Nov 2021 11:48: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 mp1 with LMTPS id ILbKE/tpn2F5ewAAbx9fmQ (envelope-from ) for ; Thu, 25 Nov 2021 10:48:27 +0000 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 0CC5F2C58 for ; Thu, 25 Nov 2021 11:48:27 +0100 (CET) Received: from localhost ([::1]:53646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqCIk-0000St-5M for larch@yhetil.org; Thu, 25 Nov 2021 05:48:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpwXh-0001lj-TX for emacs-orgmode@gnu.org; Wed, 24 Nov 2021 12:58:49 -0500 Received: from [2607:f8b0:4864:20::92b] (port=41812 helo=mail-ua1-x92b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpwXc-0002Qb-Lg for emacs-orgmode@gnu.org; Wed, 24 Nov 2021 12:58:48 -0500 Received: by mail-ua1-x92b.google.com with SMTP id p37so6817574uae.8 for ; Wed, 24 Nov 2021 09:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=JEDl/BE5GcLTLC20z0msO3j+ePnq3lpuBNtcEWywEAo=; b=Xff6sVzw4FPxbcyjAiQXWISv2OI/ixLgeBAmC/MOUAIuz4/WcOVOadrkAjGkpu2ZJH puqFRF9l2Y2NaPH9N5SjNWabIR7ldQKSIPqs0OAwm/QrQIDl+koMocTP1GTdqE1c+bTB a6fEaKQt+StpQyc7rXyHKF1BLgeujKJOyB/2tP42lu3VJTtHtPq8BfUzBEfd5AaAjiM+ hLiz7Ztssr+KLTFzVKzPvB1uje84DZEU2tip4BYm2+PrhN1dF7ue8q9phR1t42WU2QhM a6rUOxv9KYflWz9mDI2BAG+s3DaRVdrOWlU1WavIQRO0cCWVJrYHhsxFmUbOT+Wd516o Ky6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JEDl/BE5GcLTLC20z0msO3j+ePnq3lpuBNtcEWywEAo=; b=ZaOhq202Nw+ND7hZuLH2y6N80JdOzmGTgRgoOzHVIttWBtimajTQC9Hl+zTZXS0nN8 Vrp/rC8FwQDNQwkdqx/IoCMH5ZZTXprF7siMBkw17gCw/w7Y+rfFNoGudWWxVYP8AgwA tllp8P/avsYu0OAQrYJZv5x4efsmGiajuWOIqIe7tivylWXigZuuObh0LO8Evi1IllVJ o9XtyRU7q8Y+JSeuik3W/unF8HdS/lTsz3GzKV9Xg+JYzUppKrIcx0XaVSX7XBWni0xb ouWlOxXVNX6cauEtzqxV4DkhtpjdPEtuFEKXBzJIKhnRBNZMd9tDV0KQxE4KUAD8h6Kq 8/wQ== X-Gm-Message-State: AOAM533uJP/18Jqd2xN/KuvYWMO4tamMjk2WzudZ/NzfMv4y1xbGTK4S YMhv3lAcKDo7EjrgyAy1C9loZON6twH4ietTZxKl32eYIZA= X-Google-Smtp-Source: ABdhPJz/DVef1dma+kUOE/1qmQsrQuj3oAfFMEoAcMmCV1Dr8jPFF+i2qBgIyAQMEVm5x5AjCfjXXEu9f9KfPj8EqGY= X-Received: by 2002:a05:6102:3588:: with SMTP id h8mr26572040vsu.7.1637776723084; Wed, 24 Nov 2021 09:58:43 -0800 (PST) MIME-Version: 1.0 From: Diego Rodriguez Date: Wed, 24 Nov 2021 12:58:32 -0500 Message-ID: Subject: CDATA auto aggregation To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000cd078205d18c9b52" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::92b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::92b; envelope-from=diego.vincent.rodriguez@gmail.com; helo=mail-ua1-x92b.google.com X-Spam_score_int: 20 X-Spam_score: 2.0 X-Spam_bar: ++ X-Spam_report: (2.0 / 5.0 requ) AC_FROM_MANY_DOTS=0.567, BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 25 Nov 2021 05:46:55 -0500 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637837307; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JEDl/BE5GcLTLC20z0msO3j+ePnq3lpuBNtcEWywEAo=; b=Wx7Oflos+Q0WMuUG20V51XJBBe6No4+bMIL+91frW3mey90P46nLnolvahni42VL2GQYNM vp4Ax0/c7rYxmtxCpkkxJsO3aUlvVycvditIGbEH/klqrp1E1NkAX+AmANDMDZeOFtWdaR JkEO1XmuFD890L8Zf+Cav0k0pF5qVrPUynbsi90Bv9D4dGPmQFMm5eBpYKbopha7KKN/Ax 1YD1n5Zkxbyb3pVGd1rNjk+DvvScCglGqAWbk5i/iurxINJZeEwxS5s8IXkYAYY1VnieNX bF3w866Rqfarwg1a7CZKgrPELJu7M3/Dj5cu0mlKuUHmNNT2wBr9MAP/SHQ3vA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637837307; a=rsa-sha256; cv=none; b=NWuTHNufcot1l4dTcC1AEooW2EAqoVtvGI9uGxJFPimS84IV9bXPh2+Oq8N0JGp/gap05C mXwEvEjNS+NESwW+zX7YuEJxA3usQaVtKfUprbieE/dC5mhAZlqZAShAl/yeoZryJYpbkg qScoJ0XCB1ecy8m2WQlCTziiHNiZTNhI1ZcDkaqOiRsoJDZngW1W/bEmdMHtgE2muRwIxL 6kuYKQRyxfKhiGfc5ord/rIyIeWikhvir13+nd+gDA0OuJSav0ZaWSv5DZbERT8FqLWWvy KpkOn1tEW4F4zuhumbF/YnnMqZ8MZLZsCx4fy+rVSZN8w81njKlRWlMrRHMW4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Xff6sVzw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.89 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Xff6sVzw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0CC5F2C58 X-Spam-Score: -2.89 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1e8y/ojt3e7J --000000000000cd078205d18c9b52 Content-Type: text/plain; charset="UTF-8" Hello, I am customizing my org-mode installation but there is something that I don't understand. When I execute the following statement: ``` (setq org-html-mathjax-template " ") ``` A `CDATA` tag gets appended in my HTML export as shown below: ```html ``` As you can see above, when I set the variable I have no CDATA tag on it. Where does this tag come from? The problem is that the CDATA tag messes up with the MathJax configuration parser, as it expects a JavaScript script inside. But, instead, it finds a CDATA tag that, while it might be valid according to W3, the MathJax parser throws an `eval` error in the console since it tries to parse the body of that HTML node. Where does this CDATA tag gets added automatically and how can I modify this behavior? Diego Rodriguez. --000000000000cd078205d18c9b52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am customizing my org-mode ins= tallation but there is something that I don't understand.
When I execute the following statement:

```
(setq org-html-mathjax-template

"
<script type= =3D\"text/x-mathjax-config\">
=C2=A0 =C2=A0 MathJax.Hub.Con= fig({
=C2=A0 =C2=A0 =C2=A0 =C2=A0 displayAlign: \"%ALIGN\",=C2=A0 =C2=A0 =C2=A0 =C2=A0 displayIndent: \"%INDENT\",
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 \"HTML-CSS\": { scale: %SCALE,
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 linebreaks: { automatic: \"%LINEBREAKS\" },
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 webFo= nt: \"%FONT\"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 SVG: {= scale: %SCALE,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 linebrea= ks: { automatic: \"%LINEBREAKS\" },
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 font: \"%FONT\"},
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 NativeMML: {scale: %SCALE},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 TeX: = { equationNumbers: {autoNumber: \"%AUTONUMBER\"},
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MultLineWidth: \"%MULTLIN= EWIDTH\",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ta= gSide: \"%TAGSIDE\",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0TagIndent: \"%TAGINDENT\"
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 }
=C2=A0 =C2=A0 });
</script>
<script src=3D\"= ;%PATH\"></script>
")
```
A `CDATA` tag gets appended in my HTML export as shown below:<= /div>

```html
=C2=A0 <script type=3D"t= ext/x-mathjax-config">
<![CDATA[
=C2=A0 =C2=A0 mathjax.hub= .config({
=C2=A0 =C2=A0 =C2=A0 =C2=A0 displayalign: "center",<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 displayindent: "0em",
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 "html-css": { scale: 100,
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 lineb= reaks: { automatic: "false" },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 webfont: "TeX&quo= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 svg: {scale: 100,
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 linebreaks: { automatic: "f= alse" },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 font: &qu= ot;TeX"},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nativemml: {scale: 100},
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 tex: { equationnumbers: {autonumber: "AMS&= quot;},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0multlinew= idth: "85%",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0tagside: "right",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0tagindent: ".8em"
=C2=A0 =C2=A0 =C2=A0 =C2=A0= }
=C2=A0 =C2=A0 });
=C2=A0 ]]>
=C2=A0 </script>
=C2= =A0 <script src=3D
=C2=A0 "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config= =3DTeX-AMS_HTML"
=C2=A0 type=3D"text/javascript"><= br></script>
```

As you can se= e above, when I set the variable I have no CDATA tag on it. Where does this= tag come from? The problem is that the CDATA tag messes up with the MathJa= x configuration parser, as it expects a JavaScript script inside. But, inst= ead, it finds a CDATA tag that, while it might be valid according to W3, th= e MathJax parser throws an `eval` error in the console since it tries to pa= rse the body of that HTML node.

Where does this CD= ATA tag gets added automatically and how can I modify this behavior?
<= div>
Diego Rodriguez.
--000000000000cd078205d18c9b52--