NoRedInk / elm-rfc5988-parser / RFC5988

A parser for the draft for the replacement of RFC5988


type alias Link =
{ context : IRI
, target : IRI
, relationType : String
, targetAttributes : Dict String String 
}

Defined here: https://mnot.github.io/I-D/rfc5988bis/

Constructing links

emptyLink : Link

Produce an empty link.

Parsers

rfc5988 : Parser Link

Parser for a link

  parse rfc5988 "<http://noredink.com>; rel=\"start\"" ==
  ( Ok { context = "", target = "http://noredink.com", relationType = "start", targetAttributes = Dict.empty }
  , { input = "", position = 31 }
  )

rfc5988s : Parser (List Link)

Parser for a list of links