Class: Markbridge::AST::Size
- Defined in:
- lib/markbridge/ast/size.rb
Overview
Represents sized text. Note: Discourse doesn’t support inline size changes by default, but this preserves size information for migration/custom rendering.
Instance Attribute Summary collapse
-
#size ⇒ String?
readonly
The font size value.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(size: nil) ⇒ Size
constructor
Create a new Size element.
Methods inherited from Element
Constructor Details
#initialize(size: nil) ⇒ Size
Create a new Size element.
19 20 21 22 |
# File 'lib/markbridge/ast/size.rb', line 19 def initialize(size: nil) super() @size = size end |
Instance Attribute Details
#size ⇒ String? (readonly)
Returns the font size value.
14 15 16 |
# File 'lib/markbridge/ast/size.rb', line 14 def size @size end |