View Source Bonfire.Tag.TextContent.Formatter (Bonfire v0.9.10-classic-beta.169)

Summary

Functions

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

Functions

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

nothing_handler(text, opts, acc)

View Source
Link to this function

tag_handler(tag_text, buffer, opts, acc)

View Source
Link to this function

url_handler(url, opts, acc)

View Source