From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YAeOAMAom2H8fgAAgWs5BA (envelope-from ) for ; Mon, 22 Nov 2021 06:21:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sFHkN78om2FfRQAA1q6Kng (envelope-from ) for ; Mon, 22 Nov 2021 05:21:03 +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 674218CDC for ; Mon, 22 Nov 2021 06:21:03 +0100 (CET) Received: from localhost ([::1]:37726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mp1lG-0007Ce-IK for larch@yhetil.org; Mon, 22 Nov 2021 00:21:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mp1OW-00063O-9s for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 23:57:32 -0500 Received: from [2607:f8b0:4864:20::235] (port=35413 helo=mail-oi1-x235.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mp1OU-0004gT-00 for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 23:57:31 -0500 Received: by mail-oi1-x235.google.com with SMTP id m6so35550830oim.2 for ; Sun, 21 Nov 2021 20:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=g.20171207; h=mime-version:from:date:message-id:subject:to; bh=Th/qPuiQrNQfN02GDQWKj56kzn+c5nidfKwOFXqgQpw=; b=I5h/vFS1SNFLP6O4qnRCfAet4lV+5NUvE4+1kXn9tpOmzm36FPsdLKr5CQX4tKolIu ppvnIHTVg2scmExICzh7I7/cipuMGONUvmflMVodg0rYQtfJjbNXK9tiWdAcKvLMdPrY WILzfKzOUCYgyz+9A8CP5lFbgsoznZfOo6ksU+b5MmiCGR/JE63M9gRpFf4BTGBShycz LD6uPe/XDYXyFqAC/6s+AoKjPBBWrRQeHA+JRlUivPDsBud9ZQcVEw1q9aaJFebcZTfJ BEwHvBT5iRKU1sVHTWLnRyOwxoqVcLxKvEA212WsKrP8UB26qwzQp/KlpMZ8zEiDVycb CU2Q== 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=Th/qPuiQrNQfN02GDQWKj56kzn+c5nidfKwOFXqgQpw=; b=XVI9ZWmlE27ySYLR4kqmWBwin8uc6k5USx1LvI3ylAtCVUt/O+25KCujV1oWBA2NSN A4t+N+r2Ed1qlwtblLvkxV+PwG47qFDgFQwr6y2F8lB/6FQmcXXeenRVGNOM32eAbZoe XtG6b7WaCGnt71xr6A6vieQYv8GGHMRgLIlEHzui2AYWBwYTHugecrvlPPg2191Ql1Ra 0J2/QaTBEKNRtwhX3JWf7NHlisFWBVwtJeMWZVCc+IjNnFeqj44xQiKLiwvxfQ0lcghR mDs/JJcGT+qIBkijz9d1xl/vUoh5ikPoGMnC9GaC4NHr8BZ7d06Ku+wM1TS2XAGQsPjI iBMg== X-Gm-Message-State: AOAM5334Iu9k1sAg2g2G4KaO5eGRYlw0+TkRM0QX1O/z36Qn3Jghk7CR 6yuzPUOlAgB3SK7dUazXxEhAyX+8wbHPZRRcruiCTKJ3HGXQ1Q== X-Google-Smtp-Source: ABdhPJwRq+lGsZkL1HhQrcMXEXMFdOZWI/ayqtAtzFnXvnyHOf7CY/U1GlEHJr0c6U39IJAwPeWFoEsoA4kiZgNwoLA= X-Received: by 2002:aca:646:: with SMTP id 67mr18494414oig.175.1637557047107; Sun, 21 Nov 2021 20:57:27 -0800 (PST) MIME-Version: 1.0 From: Diego Rodriguez Date: Sun, 21 Nov 2021 23:57:16 -0500 Message-ID: Subject: Where does CDATA come from? To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000017b5fc05d1597666" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::235 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=dvr24@cornell.edu; helo=mail-oi1-x235.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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: Mon, 22 Nov 2021 00:18:14 -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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637558463; 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=Th/qPuiQrNQfN02GDQWKj56kzn+c5nidfKwOFXqgQpw=; b=qNs6HKeh3HWjEfPiz2fw9TCiFwvy8itxiPbp9pMUNjJNIgdW8GgC+HgHCABxIVGM2N8gBx hQzsmzxqULk2RaMsy6sgv8kBSVDvUQ5iNF8XTGvI19vtqDyut4fWoaiFCrrW2oYTbizX95 y7loxNwKSpa9rhS+OMbGZWG3eA/06b5h2LdarQmezbwZkEzyj1KJSUgK8DEwIrpglNlp2Y 6PUcBe36R3hUPehAXh/GiXiJuKjLMN/U4zycVu8aVxYy8mzQndAAGnzBYz5xc2/zPAfGz1 YvZALSxgf1F7QZx0htyRAGWPaFdFtHh6kgfM5QWXHphbJa+TfXxfdZrSp6TwNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637558463; a=rsa-sha256; cv=none; b=hKpGdwIDpYuVKeSjtfUiY18ESFtnAO02qS1xRF5Jt9nZED8ZgVRegCgE0RRr8xPkhWGZ7D WKzcMa4J3+DpDM7Qxt4CkRfbkEVY9+h9hfhygeg/pFXwtlO2qYPK7vJTWJiGxa6mr2jAjG nQfYa+mliwjjfhDzxqZIknj/dJcQiC+iGIvWSlikcpY9I60bZVgdVPo3GCaSM+tbu7B40l duBZsxQdSmRsFCbLBvgiIBZFKRI8jYEKsbToT0bAtLBAtYmj1d6eWKb0hXIFMmh/zgDjwt XY3z+o/f5V1f3HbTVKzl9ma4MrLVnPMnswBBzAyy+Y9Uj+zpLYroCN5gx8CIbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=cornell.edu header.s=g.20171207 header.b="I5h/vFS1"; dmarc=pass (policy=none) header.from=cornell.edu; 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.88 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=cornell.edu header.s=g.20171207 header.b="I5h/vFS1"; dmarc=pass (policy=none) header.from=cornell.edu; 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: 674218CDC X-Spam-Score: -2.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: nTzDSm5W+MF3 --00000000000017b5fc05d1597666 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 M.S. Candidate in Connective Media Jacobs Technion-Cornell Institute at Cornell Tech --00000000000017b5fc05d1597666 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hel= lo,

I am customizing my org-mode installation but there = is something that I don't understand.

When I e= xecute the following statement:

```
(setq org-h= tml-mathjax-template

"
<script type=3D\"text/x-mathj= ax-config\">
=C2=A0 =C2=A0 MathJax.Hub.Config({
=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: { autom= atic: \"%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 webFont: \"%FONT\&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: %SCALE,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 linebreaks: { automatic: \&qu= ot;%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: {aut= oNumber: \"%AUTONUMBER\"},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0MultLineWidth: \"%MULTLINEWIDTH\",
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0TagSide: \"%TAGSIDE\&q= uot;,
=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\"></scri= pt>
")
```

A `CDATA` tag= gets appended in my HTML export as shown below:

`= ``html
=C2=A0 <script type=3D"text/x-mathjax-config"= >
<![CDATA[
=C2=A0 =C2=A0 mathjax.hub.config({
=C2=A0 =C2=A0= =C2=A0 =C2=A0 displayalign: "center",
=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 linebreaks: { automatic: "f= alse" },
=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"
=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: "false" },
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 font: "TeX"},
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 nativemml: {scale: 100},
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 tex: { equationnumbers: {autonumber: "AMS"},
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0multlinewidth: "85%&q= uot;,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tagside: &q= uot;right",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= tagindent: ".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/aja= x/libs/mathjax/2.7.0/MathJax.js?config=3DTeX-AMS_HTML"
=C2=A0 t= ype=3D"text/javascript">
</script>
```<= /div>

As you can see above, when I set the variable I ha= ve no CDATA tag on it. Where does this tag come from? The problem is that t= he 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` err= or 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
M.S. Candidate in Connective Media
Jacobs Technion-Cornell Institut= e at Cornell Tech
--00000000000017b5fc05d1597666--