diff options
author | Marius <mariausol@gmail.com> | 2014-02-01 13:40:15 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2014-02-01 13:40:15 +0200 |
commit | 882c68f8cf4b95e1cbceadb0794d7d2d212c9a8c (patch) | |
tree | 67e60d26d3b326e284148c27a0a9ade514ab8b68 /tex/context/base/x-mathml.lua | |
parent | 97467c9234f1c0867738bfb7bbe7c0eca17168fc (diff) | |
download | context-882c68f8cf4b95e1cbceadb0794d7d2d212c9a8c.tar.gz |
beta 2014.02.01 12:12
Diffstat (limited to 'tex/context/base/x-mathml.lua')
-rw-r--r-- | tex/context/base/x-mathml.lua | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tex/context/base/x-mathml.lua b/tex/context/base/x-mathml.lua index cd60e756d..ee18d4776 100644 --- a/tex/context/base/x-mathml.lua +++ b/tex/context/base/x-mathml.lua @@ -491,13 +491,18 @@ function mathml.mi(id) if n == 0 then -- nothing to do elseif n == 1 then - local str = gsub(str[1],"&.-;","") -- bah - local rep = i_replacements[str] - if not rep then - rep = gsub(str,".",i_replacements) + local first = str[1] + if type(first) == "string" then + local str = gsub(first,"&.-;","") -- bah + local rep = i_replacements[str] + if not rep then + rep = gsub(str,".",i_replacements) + end + context(rep) + -- context.mi(rep) + else + context.xmlflush(id) -- xmlsprint or so end - context(rep) - -- context.mi(rep) else context.xmlflush(id) -- xmlsprint or so end |