- Index
- »
- markdown
- »
- SourceLine
type
SourceLine
src
@Js
const class SourceLine : Obj
A line or portion of a line from the markdown source text
constructors
fields
content |
The line content |
---|---|
sourceSpan |
The source span if the parser was configured to include it |
methods
Slot Details
content
make
src
new make(Str content, SourceSpan? sourceSpan := null)
sourceSpan
src
const SourceSpan? sourceSpan
The source span if the parser was configured to include it
substring
src
SourceLine substring(Int beginIndex, Int endIndex)
Get a new source line that is a substring of this one. The beginIndex is inclusive, and the endIndex is exclusive.