lib/plurimath/math/function/table/array.rb in plurimath-0.8.10 vs lib/plurimath/math/function/table/array.rb in plurimath-0.8.11

- old
+ new

@@ -16,14 +16,14 @@ def to_latex "\\begin{array}#{array_args || '.'}#{latex_content}\\end{array}" end - def to_mathml_without_math_tag + def to_mathml_without_math_tag(intent) Utility.update_nodes( - ox_element("mtable", attributes: table_attribute), - value&.map(&:to_mathml_without_math_tag), + ox_element("mtable", attributes: attributes(intent)), + value&.map { |object| object&.to_mathml_without_math_tag(intent) }, ) end private @@ -35,9 +35,15 @@ else Utility::ALIGNMENT_LETTERS.invert[Hash(td.parameter_two)[:columnalign]]&.to_s end end "{#{args.join}}" unless args.compact.empty? + end + + def attributes(intent) + return table_attribute unless intent + + table_attribute.merge(intent: ":equations") end end end end end