Class: Markbridge::AST::Superscript

Inherits:
Element show all
Defined in:
lib/markbridge/ast/superscript.rb

Overview

Represents superscript text (e.g., for exponents).

Examples:

Superscript text

sup = AST::Superscript.new
sup << AST::Text.new("2")  # For x^2

Instance Attribute Summary

Attributes inherited from Element

#children

Method Summary

Methods inherited from Element

#<<, #initialize

Constructor Details

This class inherits a constructor from Markbridge::AST::Element