Earmark v1.1.0 Earmark.Helpers.StringHelpers

Summary

Functions

Remove the leading part of a string

Returns a tuple with the prefix and the beheaded string

Functions

behead(str, ignore)

Remove the leading part of a string

behead_tuple(str, lead)
behead_tuple(String.t, String.t) :: {String.t, String.t}

Returns a tuple with the prefix and the beheaded string

iex> behead_tuple("prefixpostfix", "prefix")
  {"prefix", "postfix"}