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§
- Frontmatter
Plugin - Renders top-level YAML frontmatter mappings as a description list.
- Inline
Element - A GPUI element participating as one atomic object in a text line.
- Inline
Render Context - Inherited typography for a format-independent inline renderer.
- Markdown
Extensions - Registry for custom Markdown parsing and rendering.
- Markdown
Node - A custom Markdown node produced by
MarkdownExtensions. - Markdown
Parse Context - Context passed to custom Markdown parsers.
- Table
Data - Plain snapshot of a rendered Markdown table, passed to the
crate::text::TextView::table_actionshook. - Text
View - The component-level rich text element.
- Text
View Layout State - Layout state retained for source compatibility with the original component TextView.
- Text
View Motion - Motion policy of a text view. Base plays it; every duration defaults to zero, so an unstyled view adopts new content at once.
- Text
View Prepaint State - Prepaint state retained for source compatibility with the original component TextView.
- Text
View State - The state of a TextView.
- Text
View Style - TextViewStyle used to customize the style for
super::TextView.
Enums§
- Selection
Format - 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§
- Markdown
Plugin - A reusable Markdown extension that parses and renders one custom node.
- Text
View Plugin - A bundle of
TextViewconfiguration 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§
- Markdown
Block Parser Fn - Type for a custom Markdown block parser.
- Markdown
Block Render Fn - Type for a custom Markdown block renderer.