struct

Hwaro::Content::Processors::FenceOptions::Options

Inherits Struct / Value / Object

A parsed {...} fence-options block. hl_lines and hide_lines are stored as (start, end) ranges — NEVER expanded into a Set of individual line numbers, so a pathological hl_lines="1-100000" costs a handful of bytes, not 100k Int32s. name is the filename/title label ({name="main.cr"}, title= accepted as an alias) rendered above the code block.

Constructors

new(linenos : Bool | Nil = nil, linenostart : Int32 = 1, hl_lines : Array(Tuple(Int32, Int32)) = [] of ::Tuple(Int32, Int32), name : String | Nil = nil, hide_lines : Array(Tuple(Int32, Int32)) = [] of ::Tuple(Int32, Int32), copy : Bool | Nil = nil)
Source

Instance methods

clone
Source
copy
copy_with(linenos _linenos = @linenos, linenostart _linenostart = @linenostart, hl_lines _hl_lines = @hl_lines, name _name = @name, hide_lines _hide_lines = @hide_lines, copy _copy = @copy)
Source
hidden?(physical_line : Int32) : Bool
Source
hide_lines
hl?(physical_line : Int32) : Bool
Source
hl_lines
linenos
linenostart
name