From 8843b99ece457469259de29c72bad5a9356770e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Sun, 25 Apr 2021 15:25:35 +0200 Subject: [PATCH] Multiple smaller bugs --- luamml-amsmath.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/luamml-amsmath.lua b/luamml-amsmath.lua index c03fb35..0ca5d02 100644 --- a/luamml-amsmath.lua +++ b/luamml-amsmath.lua @@ -13,6 +13,7 @@ lua.get_functions_table()[funcid] = function() assert(startmath.id == node.id"math") local props = assert(properties[startmath]) local mml = assert(props.saved_mathml_table) + props.saved_mathml_table = nil table.insert(mml, 1, {[0] = 'maligngroup'}) if mml[0] == 'mstyle' and mml.displaystyle == true then mml[0], mml.displaystyle, mml.scriptlevel = 'mtd', nil, nil @@ -46,6 +47,7 @@ lua.get_functions_table()[funcid] = function() if not props then return end if not props.mathml_row then return end mml_row = props.mathml_row + props.mathml_row = nil props = properties[tex.lists.align_head] if not props then props = {} @@ -66,8 +68,9 @@ lua.get_functions_table()[funcid] = function() local props = properties[tex.lists.align_head] if not props then return end local mml_table = props.mathml_table_node_table + props.mathml_table_node_table = nil if not mml_table then return end - print(write_xml(make_root(mml_table, 2))) + print(write_xml(make_root(mml_table, 0))) end funcid = luatexbase.new_luafunction'luamml_last_math_alignmark:'