Twittertex (twittertex v0.4.0)

Twittertex formats the raw JSON of a tweet into HTML by reconstructing pretty links and so on from the entities embedded.

Link to this section Summary

Functions

Formats a classic (non-extended) tweet into HTML.

Formats an extended tweet into HTML.

Formats a tweet (classic or extended) into HTML.

Link to this section Types

Specs

opt() :: {:link_opts, Keyword.t()}

Specs

opts() :: [opt()]

Link to this section Functions

Link to this function

format_classic_tweet(tweet, opts \\ [])

Specs

format_classic_tweet(%{}, opts()) :: String.t()

Formats a classic (non-extended) tweet into HTML.

Returns a String of HTML.

Link to this function

format_extended_tweet(tweet, opts \\ [])

Specs

format_extended_tweet(%{}, opts()) :: String.t()

Formats an extended tweet into HTML.

Returns a String of HTML.

Link to this function

format_tweet(tweet, opts \\ [])

Specs

format_tweet(%{}, opts()) :: String.t()

Formats a tweet (classic or extended) into HTML.

Returns a String of HTML.