| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Matterhorn.Draw.RichText
Synopsis
- renderRichText :: SemEq a => Text -> HighlightSet -> Maybe Int -> Bool -> Maybe Int -> Maybe (Int -> Inline -> Maybe a) -> Blocks -> Widget a
- renderText :: SemEq a => Text -> Widget a
- renderText' :: SemEq a => Maybe TeamBaseURL -> Text -> HighlightSet -> Maybe (Int -> Inline -> Maybe a) -> Text -> Widget a
- cursorSentinel :: Char
- findVerbatimChunk :: Blocks -> Maybe Text
Documentation
Arguments
| :: SemEq a | |
| => Text | The username of the currently-authenticated user. |
| -> HighlightSet | A highlight set for highlighting channel and usernames and code blocks. |
| -> Maybe Int | An optional maximum width. |
| -> Bool | Whether to do line wrapping. |
| -> Maybe Int | At what height to truncate long verbatim/code blocks |
| -> Maybe (Int -> Inline -> Maybe a) | An optional function to build resource names for clickable regions. |
| -> Blocks | The content to render. |
| -> Widget a |
Render rich text.
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 |