Earmark v1.2.2 Earmark.Helpers

Summary

Functions

Encode URIs to be included in the <a> elements

Replace <, >, and quotes with the corresponding entities. If encode is true, convert ampersands, too, otherwise only convert non-entity ampersands

Expand tabs to multiples of 4 columns

Remove newlines at end of line

Regex.replace with the arguments in the correct order

Functions

encode(html)

Encode URIs to be included in the <a> elements.

Percent-escapes a URI, and after that escapes any &, <, >, ", '.

escape(html, encode \\ false)

Replace <, >, and quotes with the corresponding entities. If encode is true, convert ampersands, too, otherwise only convert non-entity ampersands.

expand_tabs(line)

Expand tabs to multiples of 4 columns

remove_line_ending(line)

Remove newlines at end of line

replace(text, regex, replacement, options \\ [])

Regex.replace with the arguments in the correct order