View Source Bonfire.Tag.TextContent.Formatter (bonfire v0.3.5-classic-beta.7)

Link to this section Summary

Functions

Parses a text and replace plain text links with HTML. Returns a tuple with a result text, mentions, and hashtags.

Escapes a special characters in mention names (not used right now)

Link to this section Functions

Link to this function

escape_mention_handler(mention, buffer, _, _)

View Source
Link to this function

linkify(text, options \\ [])

View Source
@spec linkify(
  String.t(),
  keyword()
) :: {String.t(), [{String.t(), User.t()}], [{String.t(), String.t()}]}

Parses a text and replace plain text links with HTML. Returns a tuple with a result text, mentions, and hashtags.

If the 'safe_mention' option is given, only consecutive mentions at the start the post are actually mentioned.

Link to this function

mentions_escape(text, options \\ [])

View Source

Escapes a special characters in mention names (not used right now)

Link to this function

tag_handler(tag_text, buffer, opts, acc)

View Source
Link to this function

url_handler(url, opts, acc)

View Source