Class: Stepmod::Utils::Converters::Sup
- Inherits:
-
Coradoc::Input::Html::Converters::Sup
- Object
- Coradoc::Input::Html::Converters::Sup
- Stepmod::Utils::Converters::Sup
- Defined in:
- lib/stepmod/utils/converters/sup.rb
Instance Method Summary collapse
Instance Method Details
#stem_notation(content) ⇒ Object
16 17 18 |
# File 'lib/stepmod/utils/converters/sup.rb', line 16 def stem_notation(content) "^{#{content}}" end |
#to_coradoc(node, state = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/stepmod/utils/converters/sup.rb', line 7 def to_coradoc(node, state = {}) if state[:equation] stem_notation(treat_children(node, state)) else super(node, state) end end |