summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lxml-tex.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-06-02 23:03:30 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-06-02 23:03:30 +0200
commit2bca80bc96d0182956e57c51b5d4977f714bed5c (patch)
treee0edb360bc5de3067487bcbb31eb040f696e2853 /tex/context/base/mkiv/lxml-tex.lua
parenta274872832cdd1e71ce4b019858c61c5a77c6b98 (diff)
downloadcontext-2bca80bc96d0182956e57c51b5d4977f714bed5c.tar.gz
2016-06-02 21:33:00
Diffstat (limited to 'tex/context/base/mkiv/lxml-tex.lua')
-rw-r--r--tex/context/base/mkiv/lxml-tex.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/lxml-tex.lua b/tex/context/base/mkiv/lxml-tex.lua
index 836286073..026cf520d 100644
--- a/tex/context/base/mkiv/lxml-tex.lua
+++ b/tex/context/base/mkiv/lxml-tex.lua
@@ -523,6 +523,8 @@ local function entityconverter(id,str,ent) -- todo: disable tex entities when ra
return xmlprivatetoken(str)
end
+lxml.preprocessor = nil
+
local function lxmlconvert(id,data,compress,currentresource)
local settings = { -- we're now roundtrip anyway
unify_predefined_entities = false, -- is also default
@@ -530,6 +532,7 @@ local function lxmlconvert(id,data,compress,currentresource)
resolve_predefined_entities = true, -- is also default
resolve_entities = function(str,ent) return entityconverter(id,str,ent) end,
currentresource = tostring(currentresource or id),
+ preprocessor = lxml.preprocessor,
}
if compress and compress == variables.yes then
settings.strip_cm_and_dt = true