lib/plurimath/math/function/sup.rb in plurimath-0.8.10 vs lib/plurimath/math/function/sup.rb in plurimath-0.8.11
- old
+ new
@@ -4,13 +4,13 @@
module Plurimath
module Math
module Function
class Sup < UnaryFunction
- def to_mathml_without_math_tag
- mo_tag = Utility.ox_element("mo") << "sup"
- first_value = mathml_value
- first_value = mathml_value&.insert(0, mo_tag) unless hide_function_name
+ def to_mathml_without_math_tag(intent)
+ mo_tag = ox_element("mo") << "sup"
+ first_value = mathml_value(intent)
+ first_value = mathml_value(intent)&.insert(0, mo_tag) unless hide_function_name
Utility.update_nodes(
ox_element("mrow"),
first_value,
)
end