Module
marksy/text
src/marksy/text.pookaSmall tools shared by the two parsing passes. Work in Unicode scalar values when looking for ASCII punctuation, and keep original UTF-8 byte addresses in the line reader. A combining mark must not swallow a Markdown delimiter.
API reference
chars(value: String) -> List(String)
INFERRED
fn(String) -> List(String)Split into scalar strings, including combining marks as separate entries.
run(values: List(String), character: String) -> Int
INFERRED
fn(List(String), String) -> IntCount identical characters at the head without scanning the remaining text.
space(value: String) -> Bool
INFERRED
fn(String) -> BoolMarkdown's ASCII whitespace is deliberately narrower than Unicode trim.
trim(value: String) -> String
INFERRED
fn(String) -> Stringescape(value: String) -> String
INFERRED
fn(String) -> StringEscape text and attribute delimiters in one pass over already split chunks.