Sha256: 0c9d4d4c18894cc6f31bead6f16435b082cfd1e4849386b0ef7198127407bb33
Contents?: true
Size: 733 Bytes
Versions: 13
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" 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 Utility.update_nodes( ox_element("mrow"), first_value, ) end def to_omml_without_math_tag(display_style) array = [] array << r_element("sup", rpr_tag: false) unless hide_function_name array += Array(omml_value(display_style)) array end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems