Skip to main content

Module text

Module text 

Source
Expand description

Compatibility facade for rich text now owned by gpui-base.

Modules§

markdown_ast
Re-export of the Markdown AST types used by custom parsers. markdown syntax tree: mdast.

Structs§

FrontmatterPlugin
Renders top-level YAML frontmatter mappings as a description list.
InlineElement
A GPUI element participating as one atomic object in a text line.
InlineRenderContext
Inherited typography for a format-independent inline renderer.
MarkdownExtensions
Registry for custom Markdown parsing and rendering.
MarkdownNode
A custom Markdown node produced by MarkdownExtensions.
MarkdownParseContext
Context passed to custom Markdown parsers.
TableData
Plain snapshot of a rendered Markdown table, passed to the crate::text::TextView::table_actions hook.
TextView
The component-level rich text element.
TextViewLayoutState
Layout state retained for source compatibility with the original component TextView.
TextViewMotion
Motion policy of a text view. Base plays it; every duration defaults to zero, so an unstyled view adopts new content at once.
TextViewPrepaintState
Prepaint state retained for source compatibility with the original component TextView.
TextViewState
The state of a TextView.
TextViewStyle
TextViewStyle used to customize the style for super::TextView.

Enums§

SelectionFormat
The format of the text returned by TextViewState::selected_text, which is also what copy writes to the clipboard.
Text
Either a plain string or a rich TextView.

Traits§

MarkdownPlugin
A reusable Markdown extension that parses and renders one custom node.
TextViewPlugin
A bundle of TextView configuration that can be applied in one call.

Functions§

html
Creates an HTML text view identified by the caller’s code location.
markdown
Creates a Markdown text view identified by the caller’s code location.

Type Aliases§

MarkdownBlockParserFn
Type for a custom Markdown block parser.
MarkdownBlockRenderFn
Type for a custom Markdown block renderer.