lerzegov/elm-markup/1.0.0

Renamed to lerzegov/elm-markup-fork. It is published under that name, and new versions come out there.

Versions published as lerzegov/elm-markup still install under that name. 1 version could not be recovered and cannot be installed.

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: no fork with tag 1.0.0 found (28 same-name repos checked); https://github.com/lerzegov/elm-markup-fork has tag 1.0.0, but not a package Elm could build from it; https://github.com/lerzegov/elm-markup-fork commit 1ea589d5d7f182e39d0a124ab1561a7e076e4f31 (the tag's commit when Software Heritage visited) has tag 1.0.0, but not a package Elm could build from it; no cached copy. Use another version.

Details

Mark.Error

type alias Error =
Rendered

Rendering Errors

toString : Error -> String
toHtml : Theme -> Error -> Html msg
type Theme
= Dark
| Light
toDetails : Error -> Details
type alias Details =
{ title : String
, message : List Text
, region : Maybe Range
}
type alias Text =
{ text : String
, bold : Bool
, underline : Bool
, color : Maybe String
}
type alias Range =
{ start : Position
, end : Position
}
type alias Position =
{ offset : Int
, line : Int
, column : Int
}

Creating Custom Errors

type alias Custom =
{ title : String
, message : List String
}

Create a custom error message to use with Mark.verify