Dear list,
Following MWE outputs only ‘m’ characters (with latest upload).
Thanks
\startluacode
function roman_num(n)
assert(type(n) == 'number')
context(tex.romannumeral(n))
end
\stopluacode
\define[1]\RM{\ctxlua{roman_num(#1)}}
\starttext
\RM{1}
\RM{7}
\RM{10}
\RM{70}
\RM{100}
\stoptext