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 UE4hHW+DoWHYOQAAgWs5BA (envelope-from ) for ; Sat, 27 Nov 2021 02:01:35 +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 WDClGG+DoWFWdwAAbx9fmQ (envelope-from ) for ; Sat, 27 Nov 2021 01:01:35 +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 0432C2BEA6 for ; Sat, 27 Nov 2021 02:01:35 +0100 (CET) Received: from localhost ([::1]:39104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqm5t-0003h3-AS for larch@yhetil.org; Fri, 26 Nov 2021 20:01:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqm5K-0003fi-2r for emacs-orgmode@gnu.org; Fri, 26 Nov 2021 20:00:58 -0500 Received: from [2607:f8b0:4864:20::533] (port=33597 helo=mail-pg1-x533.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqm5H-0001U3-QM for emacs-orgmode@gnu.org; Fri, 26 Nov 2021 20:00:57 -0500 Received: by mail-pg1-x533.google.com with SMTP id f65so9618436pgc.0 for ; Fri, 26 Nov 2021 17:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=JadmJ/1MIOmNt7MmwImGOe8xn5NS+kzmk/WqjzGaVTg=; b=gplYIMD7E9BhaxzxL9dOmylKcBF95BdlwEQQocUTAscpnEa81w8BpsDuC/RhDpy+VC oxHHWflHJgS1Js5GXLZyx+VLRnxPKLDOgJzMgMIXES7gLYjKDE0YEKzlN+X62ErjZEml mIYreMk+MmF0w+heM/TsKzpj7L3vo48NCYHfzEIZSPXvS+XRrLY+NJ4fL1uY4HMfxRDh jV1ofdboLyrz+w/DchXSL91XGPy5ifLEl5ThMOUP7eBtCjQ1o3Ix9hKivAh3ic5S3Ngs d82Vd8aBk141Vj1IPj48KrZ6SFnGQTCbiiX9EAyBz5zs3rVDyDUCr2+lLFgMZ5OAAgGP wd9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=JadmJ/1MIOmNt7MmwImGOe8xn5NS+kzmk/WqjzGaVTg=; b=AL2PoMfW8uyAVmgk5r6V+ccWA3VJz9TqSibP3Oaq0nVOTrl2B7NAHAL2AsUrrXgLtT TbMEi8Vkis+T/DtZrN9PgWgnNDK09pz9p/JpUfFnmYPhfmvyqAa8XgcqHYU82WPlzrmT 7MFEI62iYTWnBqzrq0szBlfryIPylQBBvdBfyDiRD1oK/1686Ygva5X/3cBHBu+9Q8hw pbOEf1AcvOYvd23GnlUxLxbH8LHbNlBWpEpajsgiwt0aZdOXzNTDdPIfRouWxrNdsPXc iNz+YJrZlee+yMwqhnFPqcr6i/YYrM/TvHmaDWnrPYZflUwu9LOCpL827qFDAR2rsW2/ rejA== X-Gm-Message-State: AOAM530wNGZR8r32ETNDhx77kup56NkP9xP55xXlxcM4Rg72hhJwOm6U UdPBDmcEgKedEBr9Gnt8+mW2JiaWOXo= X-Google-Smtp-Source: ABdhPJxbQG2db+g6wllooHW5+Oi2xfM82VJYK5iaFrtIB+RA3eHe9SLzJBEXcTQUhT0eAkaBir60qA== X-Received: by 2002:a05:6a00:1c56:b0:4a4:f8cb:2604 with SMTP id s22-20020a056a001c5600b004a4f8cb2604mr24322751pfw.34.1637974853561; Fri, 26 Nov 2021 17:00:53 -0800 (PST) Received: from dingbat (2001-44b8-31f2-bb00-e99d-4e0a-55f3-0f7c.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:e99d:4e0a:55f3:f7c]) by smtp.gmail.com with ESMTPSA id t8sm7976462pfe.28.2021.11.26.17.00.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 17:00:53 -0800 (PST) References: User-agent: mu4e 1.7.5; emacs 28.0.60 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: CDATA auto aggregation Date: Sat, 27 Nov 2021 11:54:46 +1100 In-reply-to: Message-ID: <87ee72l8e6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::533 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x533.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=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-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=1637974895; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JadmJ/1MIOmNt7MmwImGOe8xn5NS+kzmk/WqjzGaVTg=; b=EJYzLcE7vbB06ZfumQGQZqxKvoxQgJhTcmCQMsrLBXvBjdmpJnSwZZbcBTrt5M2Ui/GzMn WCnVcqLB5Z31TTH4OIKwYauMjzPPr3rp4+uWB/HqTZuGIh8GVKWrFs14w00FqQXbVXkAhi NW128Dfy4jV9on5fCR8ejM51mE6edM35aFG59/Ne12uXE5hWcj9CBEBZCM4z9OtAAbsdDt Fo4E/I8eCA4YTLKLXsEOGr42gFcLIjKZ4iPDIGQzkQSllClQubgSWJXIE8JDpN7D5TNdod rxE79BoQThzGjLMSmtWXL5CTbQOGvO3kzySiEDgX7E1xeybb7uvM6KJ0GrukJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637974895; a=rsa-sha256; cv=none; b=V2MVrWE811HHPByNSDRE2PRKac9iMG77GTq3kkZEZQbbRgVz3J0dMUZYwEQL6lboqDLpjD ehf2XYmpYtAXxHVyllmk/AB/OD+12HaOz6Xx6ibhsCTIYSTz6RoSCd7sxLaMtLNQiDzFjx 4cxnMOZ0y6HiQywpQqzX6XQ5yNxQmMaaxWmLTaBKRGeaz/Si0vgm7NUFk7gT9kHC0C9LP4 /mao3HdCw9TunIVkG2vvunqaaaY9h4+tfwCwiNiuJlB/hGcCvA7zf756rvLEISy21c1XRb UFJkN1g74wO4uARRpliZcNEr7QWBVdCKQxuwb2PddCs0JDSqpabiJxY91ny/Rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gplYIMD7; 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: -3.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gplYIMD7; 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: 0432C2BEA6 X-Spam-Score: -3.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: pMofOfPfPYQI Diego Rodriguez writes: > 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? > Unfortunately, I don't know precisely where that tag gets added from. I suspect it could be related to the ox-html stuff, which is still based on xhtml rather than html5. I did suggest some months back that it was probably about time we updated to export as html5 rather than the now deprecated xhtml, but there were a few who felt that this would result in the loss of key functionality they wanted to maintain. We probably should consider moving the existing ox-html to an ox-xhtml and implementing a new ox-html that is based on html5.