Files
Notare/lib/notare/nodes/run.rb
mathias234 597bc91c40
All checks were successful
CI Pipeline / build (pull_request) Successful in 12s
Implement many more nodes
Adds these new styling and formatting nodes
* strike
* highlight
* linebreaks
* pagebreaks
* Hyperlinks
2025-12-02 14:43:53 +01:00

23 lines
564 B
Ruby

# frozen_string_literal: true
module Notare
module Nodes
class Run < Base
attr_reader :text, :bold, :italic, :underline, :strike, :highlight, :color, :style
def initialize(text, bold: false, italic: false, underline: false,
strike: false, highlight: nil, color: nil, style: nil)
super()
@text = text
@bold = bold
@italic = italic
@underline = underline
@strike = strike
@highlight = highlight
@color = color
@style = style
end
end
end
end