Pleroma v1.1.9-10-g42f76306+dev Pleroma.Formatter View Source

Link to this section Summary

Link to this section Functions

Link to this function

emojify(text, emoji, strip \\ false)

View Source
Link to this function

escape_mention_handler(mention, buffer, _, _)

View Source

Outputs a list of the emoji-shortcodes in a text

Outputs a list of the emoji-Maps in a text

Link to this function

hashtag_handler(tag_text, buffer, opts, acc)

View Source
Link to this function

linkify(text, options \\ [])

View Source
linkify(String.t(), keyword()) ::
  {String.t(), [{String.t(), Pleroma.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

mention_handler(arg, buffer, opts, acc)

View Source
Link to this function

mentions_escape(text, options \\ [])

View Source

Escapes a special characters in mention names.

Link to this function

truncate(text, max_length \\ 200, omission \\ "...")

View Source