From bfc4efe3e101519dde9b7f5ec49a6b292ee37413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Wed, 28 Apr 2021 05:28:37 +0200 Subject: [PATCH] Fix bug --- luamml-convert.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luamml-convert.lua b/luamml-convert.lua index e58d746..aa17967 100644 --- a/luamml-convert.lua +++ b/luamml-convert.lua @@ -83,7 +83,7 @@ local function kernel_to_table(kernel, cur_style) local result = {[0] = elem, char, ['tex:family'] = fam ~= 0 and fam or nil, - mathvariant = #char == 1 and elem == 'mi' and utf8.codepoint(char) < 0x10000 and 'normal' or nil + mathvariant = utf8.len(char) == 1 and elem == 'mi' and utf8.codepoint(char) < 0x10000 and 'normal' or nil } return result, result elseif id == sub_box_t then