Twittertex (twittertex v0.5.0)

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

Summary

Functions

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

Formats an extended tweet into HTML.

Formats a tweet (classic or extended) into HTML.

Types

opt()

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

opts()

@type opts() :: [opt()]

Functions

format_classic_tweet(tweet, opts \\ [])

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

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

Returns a String of HTML.

format_extended_tweet(tweet, opts \\ [])

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

Formats an extended tweet into HTML.

Returns a String of HTML.

format_tweet(tweet, opts \\ [])

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

Formats a tweet (classic or extended) into HTML.

Returns a String of HTML.