This module is like Tree.Blocks, except that if the first line of a block is deemed to signal the beginning of a "verbatim block," all succeeding lines will be incorporated in it, so long as their indentation level is greater than or equal to the indentation level of the first line. To make this work, function fromStringAsParagraphs requires an additional argument:
fromStringAsParagraphs :
(String -> Bool)
-> String
-> List Block
The additional argument is a predicate which determines whether a line to be considered the first line of a verbatim blck.
{ indent : Basics.Int
, lineNumber : Basics.Int
, numberOfLines : Basics.Int
, content : String
}
fromStringAsLines : String -> List Block
fromStringAsParagraphs : (String -> Basics.Bool) -> String -> List Block
quantumOfBlocks : List Block -> Basics.Int
Used by Tree.Build