From ec8fd3c1a862058079e43022774f5ce79c7d06b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Mon, 24 May 2021 18:41:12 +0200 Subject: [PATCH] Only mark symbols belonging to MML token elements --- luamml-convert.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/luamml-convert.lua b/luamml-convert.lua index 0676ad7..6ff524e 100644 --- a/luamml-convert.lua +++ b/luamml-convert.lua @@ -306,7 +306,7 @@ local function radical_to_table(radical, sub, cur_style) local elem if kind == 'radical' or kind == 'uradical' then -- FIXME: Check that this is really a square root - elem, core = {[0] = 'msqrt', nucleus, [':node'] = left[':node'], }, nil + elem, core = {[0] = 'msqrt', nucleus, }, nil elseif kind == 'uroot' then -- FIXME: Check that this is really a root elem, core = {[0] = 'msqrt', nucleus, kernel_to_table(radical.degree)}, nil @@ -332,7 +332,6 @@ local function fraction_to_table(fraction, sub, cur_style) local mfrac = {[0] = 'mfrac', linethickness = fraction.width and fraction.width == 0 and 0 or nil, bevelled = fraction.middle and "true" or nil, - [':node'] = fraction, num, denom, }