lerzegov/elm-markup-fork/2.0.0

Formerly lerzegov/elm-markup. Search finds this package by either name.

Mark.Internal.Parser

= AddedContent
| AddedItem
= InlineRecord
| BlockRecord
= Replacement String String
| Balanced
{ start : ( String, String )
, end : ( String, String )
}
number
-> { a
| start : { b | offset : number, line : c, column : number }
, end : d
}
-> { start :
{ offset : number
, line : c
, column : number
}
, end : d
}

Parses a float and must end with whitespace, not additional characters.

-> Block thing
-> ( NestedIndex, TreeCursor )
-> Parser
(Step ( NestedIndex, TreeCursor ) (List Description))

Parse a full nested tree in one go.

getPosition : Parser c p Position
Parser Context Problem thing
-> Parser
{ source : String
, range : Range
, value : thing
}
indentationString : Int -> String
indentedString : Int -> String -> Parser Context Problem (Step String String)
Int
-> List (Block data)
-> { a
| found : List Description
, seed : Seed
, parsedSomething : Bool
}
-> Parser
(Step
{ parsedSomething : Bool
, found : List Description
, seed : Seed
}
(List Description)
)
newline : Parser c Problem ()
newlineWith : String -> Parser c Problem ()
List (Block data)
-> List Expectation
-> Seed
peek : String -> Parser c p thing -> Parser c p thing
raggedIndentedStringAbove : Int -> String -> Parser Context Problem (Step String String)
-> Id
-> Id
-> String
-> List ( String, Parser Context Problem ( String, Description ) )
skipBlankLineWith : thing -> Parser Context Problem thing
{ inlines : List (Block a)
, replacements : List Replacement
}
-> Seed
-> Position
-> Styling
withIndent : (Int -> Parser c x b) -> Parser c x b
Parser Context Problem thing
-> Parser Context Problem ( Range, thing )
Parser Context Problem (Result err thing)
-> Parser
(Result
{ range : Range
, error : err
}
{ range : Range
, value : thing
}
)
word : Parser Context Problem String