Sha256: 293e576893f1f834a4ddad8bf4a9be734818c558400921ccebc44ac6f2bfa2d8
Contents?: true
Size: 823 Bytes
Versions: 14
Compression:
Stored size: 823 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(intent, options:) mo_tag = ox_element("mo") << "sup" first_value = mathml_value(intent, options: options) first_value = mathml_value(intent, options: options)&.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, options:) array = [] array << r_element("sup", rpr_tag: false) unless hide_function_name array += Array(omml_value(display_style, options: options)) array end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems