Earmark v1.2.4 Earmark.Helpers.StringHelpers

Link to this section Summary

Functions

Remove the leading part of a string

Returns a tuple with the prefix and the beheaded string

Link to this section Functions

Link to this function behead(str, ignore)

Remove the leading part of a string

Link to this function 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"}