Versions in this module Expand all Collapse all v0 v0.4.0 Nov 28, 2026 v0.3.4 Nov 26, 2026 v0.3.3 Nov 25, 2026 v0.3.2 Nov 25, 2026 v0.3.1 Nov 25, 2026 v0.3.0 Nov 23, 2026 v0.2.0 Nov 19, 2026 v0.1.0 Nov 16, 2026 Changes in this version + const CopyAction + func IsDiagram(b CodeBlock) bool + func PlainText(content []Inline) string + func Provide(cx *core.Scope, plugins ...Plugin) + func ProvideSearch(cx *core.Scope, s *Search) + func RepairStreaming(markdown string) string + type Alert uint8 + const AlertCaution + const AlertImportant + const AlertNone + const AlertNote + const AlertTip + const AlertWarning + func (a Alert) String() string + type Block interface + Kind func() string + type Blockquote struct + Alert Alert + Children []Block + func (Blockquote) Kind() string + type Break struct + type Classes map[Part]string + type Code struct + Code string + type CodeAction struct + ID string + Label string + type CodeActionEvent struct + Code CodeBlock + ID string + type CodeBlock struct + Code string + Language string + Meta string + func (CodeBlock) Kind() string + type CodeBlockAction struct + Code CodeBlock + Done func() bool + ID string + Label string + type ColumnAlign uint8 + const AlignCenter + const AlignLeft + const AlignNone + const AlignRight + type Custom struct + Attributes map[string]string + Children []Block + Content []Inline + Data any + Name string + Text string + func (c Custom) Kind() string + type Details struct + Children []Block + Open bool + Summary []Inline + func (Details) Kind() string + type Document struct + Blocks []Block + Footnotes []Footnote + func Parse(markdown string, extensions ...Extension) Document + func ParseHTML(source string, extensions ...Extension) Document + func ParseWith(markdown string, o Options, extensions ...Extension) Document + func (d Document) PlainText() string + type Emphasis struct + Content []Inline + type Extension struct + Container string + Language string + Name string + Pattern *regexp.Regexp + Tag string + type FindOptions struct + CaseSensitive bool + WholeWord bool + type Footnote struct + Children []Block + Index int + Label string + type FootnoteReference struct + Index int + Label string + type Heading struct + Anchor string + Content []Inline + Level int + func (Heading) Kind() string + type Highlight struct + Class string + End int + Start int + Style core.Style + type Highlighter func(code CodeBlock) []Highlight + type Image struct + Alt string + Height core.Length + Src string + Title string + Width core.Length + type Inline interface + type Keyboard struct + Text string + type Link struct + Content []Inline + Title string + URL string + type LinkPressEvent struct + URL string + type List struct + Items []ListItem + Loose bool + Ordered bool + Start int + func (List) Kind() string + type ListItem struct + Children []Block + Done bool + Task bool + type Mark struct + Color core.Color + Content []Inline + type Match struct + From int + Text TextRef + To int + type Math struct + Display bool + TeX string + func (Math) Kind() string + type Options struct + Frontmatter bool + MDX bool + NoAlerts bool + NoHTML bool + NoMath bool + Streaming bool + type Paragraph struct + Content []Inline + func (Paragraph) Kind() string + type Part uint8 + const PartAlert + const PartAlertCaution + const PartAlertContent + const PartAlertImportant + const PartAlertNote + const PartAlertTip + const PartAlertTitle + const PartAlertWarning + const PartBlockquote + const PartCode + const PartCodeBlock + const PartCodeBlockAction + const PartCodeBlockCode + const PartCodeBlockHeader + const PartCodeBlockScroll + const PartCustom + const PartDetails + const PartDiagramBlock + const PartDiagramBlockScroll + const PartEmphasis + const PartFootnote + const PartFootnoteLabel + const PartFootnoteReference + const PartFootnotes + const PartHeading + const PartHeading1 + const PartHeading2 + const PartHeading3 + const PartHeading4 + const PartHeading5 + const PartHeading6 + const PartImage + const PartKeyboard + const PartLink + const PartList + const PartListItem + const PartListItemContent + const PartListMarker + const PartMark + const PartMath + const PartMathBlock + const PartMathBlockScroll + const PartOrderedList + const PartParagraph + const PartRoot + const PartRule + const PartSearch + const PartSearchSelected + const PartSmall + const PartStrikethrough + const PartStrong + const PartSubscript + const PartSummary + const PartSummaryMarker + const PartSuperscript + const PartTable + const PartTableActions + const PartTableCell + const PartTableHead + const PartTableHeaderCell + const PartTableRow + const PartTableScroll + const PartTaskDone + const PartTaskMarker + const PartTaskMarkerChecked + const PartUnderline + const PartUnorderedList + type Plugin struct + Extension Extension + Render func(cx *core.Scope, node Custom) core.Node + type Rule struct + func (Rule) Kind() string + type Search struct + func NewSearch(cx *core.Scope) *Search + func (s *Search) Close() + func (s *Search) Count() int + func (s *Search) IsOpen() bool + func (s *Search) Next() + func (s *Search) Open() + func (s *Search) Previous() + func (s *Search) Query() string + func (s *Search) Selected() int + func (s *Search) SelectedBounds() (core.Bounds, bool) + func (s *Search) SelectedMatch() (Match, bool) + func (s *Search) SetOptions(o FindOptions) + func (s *Search) SetQuery(q string) + func (s *Search) SetRevealMargin(e core.Edges) + type Small struct + Content []Inline + type Strikethrough struct + Content []Inline + type Strong struct + Content []Inline + type Styles map[Part]core.Style + type Subscript struct + Content []Inline + type Superscript struct + Content []Inline + type Table struct + Align []ColumnAlign + Head []TableCell + Rows [][]TableCell + func (Table) Kind() string + func (t Table) Columns() int + type TableCell struct + ColSpan int + Content []Inline + type Text struct + Text string + type TextRef struct + Footnote int + Path []int + type TextView struct + Classes Classes + CodeBlockActions []CodeAction + CustomSpan func(node Custom) core.Span + Document Document + DocumentFunc func() Document + Extensions []Extension + HTML string + HTMLFunc func() string + Highlighter Highlighter + Markdown string + MarkdownFunc func() string + NoCodeBlockScrollbar bool + NoDiagramBlockScrollbar bool + NoMathBlockScrollbar bool + NoTableScroll bool + NoTableScrollbar bool + OnCodeBlockAction func(CodeActionEvent) + OnImagePress func(image Image) + OnLayout func(core.Bounds) + OnLinkPress func(LinkPressEvent) + OpenLinks bool + Options Options + RenderCodeBlock func(cx *core.Scope, code CodeBlock) core.Node + RenderCodeBlockAction func(cx *core.Scope, action CodeBlockAction) core.Node + RenderCustom func(cx *core.Scope, node Custom) core.Node + RenderDiagram func(cx *core.Scope, code CodeBlock) core.Node + RenderImage func(cx *core.Scope, image Image) core.Node + RenderMath func(cx *core.Scope, math Math) core.Node + RenderTableActions func(cx *core.Scope, table Table) core.Node + Search *Search + Selectable bool + StreamingCaret core.Node + StyleOf func(Part) core.Style + Styles Styles + TestID string + Tooltip core.Node + func (tv TextView) Render(cx *core.Scope) core.Node + type Underline struct + Content []Inline