matterhorn-50200.13.0: Terminal client for the Mattermost chat system
Safe HaskellNone
LanguageHaskell2010

Matterhorn.Draw.RichText

Synopsis

Documentation

renderRichText Source #

Arguments

:: SemEq a 
=> Text

The username of the currently-authenticated user.

-> HighlightSet

A highlight set for highlighting channel and usernames.

-> Maybe Int

An optional maximum width.

-> Bool

Whether to do line wrapping.

-> Maybe (Int -> Inline -> Maybe a)

An optional function to build resource names for clickable regions.

-> Blocks

The content to render.

-> Widget a 

renderText' Source #

Arguments

:: SemEq a 
=> Maybe TeamBaseURL

An optional base URL against which to match post links.

-> Text

The username of the currently-authenticated user.

-> HighlightSet

A highlight set for highlighting channel and usernames.

-> Maybe (Int -> Inline -> Maybe a)

An optional function to build resource names for clickable regions.

-> Text

The text to parse and then render as rich text.

-> Widget a 

findVerbatimChunk :: Blocks -> Maybe Text Source #

Find the first code block in a sequence of rich text blocks.