View Source Bonfire.Common.Text (bonfire_umbrella v0.9.8-cooperation-beta.31)

Summary

Functions

Link to this function

code_syntax(text, filename)

View Source
Link to this function

contains?(string, substring)

View Source
Link to this function

list_checked_boxes(text)

View Source
Link to this function

list_unchecked_boxes(text)

View Source
Link to this function

markdown_as_html_earmark(content, opts)

View Source
Link to this function

markdown_as_html_mdex(content, opts)

View Source
Link to this function

markdown_checkboxes(text)

View Source
Link to this function

maybe_emote(content, custom_emoji \\ [])

View Source
Link to this function

maybe_markdown_to_html(nothing, opts \\ [])

View Source
Link to this function

maybe_normalize_html(html_string)

View Source
Link to this function

maybe_render_templated(templated_content, data)

View Source
Link to this function

maybe_sane_html(content)

View Source

It is recommended to call this before storing any that data is coming in from the user or from a remote instance

takes a string as input and converts it to snake_case

Link to this function

normalise_links(content, format \\ :markdown)

View Source
Link to this function

random_string(length \\ 10)

View Source
Link to this function

sentence_truncate(input, length \\ 250, add_to_end \\ "")

View Source
Link to this function

truncate(text, max_length \\ 250, add_to_end \\ nil)

View Source
Link to this function

underscore_truncate(input, length \\ 250)

View Source
Link to this function

verb_infinitive(verb_conjugated)

View Source

Uses the Verbs library to convert an English conjugated verb back to inifinitive form. Currently only supports irregular verbs.