Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/glamour
/ types & classes
Types & classes
53 in github.com/charmbracelet/glamour
⨍
Functions
282
◇
Types & classes
53
Struct
ANSIRenderer
ANSIRenderer renders markdown content as ANSI escaped sequences.
ansi/renderer.go:94
Struct
BaseElement
BaseElement renders a styled primitive element.
ansi/baseelement.go:17
Struct
BlockElement
BlockElement provides a render buffer for children of a block element. After all children have been rendered into it, it applies indentation and margi
ansi/blockelement.go:14
TypeAlias
BlockStack
BlockStack is a stack of block elements, used to calculate the current indentation & margin level during the rendering process.
ansi/blockstack.go:9
Struct
Chroma
Chroma holds all the chroma settings.
ansi/style.go:4
Struct
CodeBlockElement
A CodeBlockElement is used to render code blocks.
ansi/codeblock.go:23
Struct
CodeSpanElement
A CodeSpanElement is used to render codespan.
ansi/codespan.go:6
Struct
CompoundElement
A CompoundElement renders multiple elements sequentially.
ansi/image.go:1025
Struct
Element
An Element is used to instruct the renderer how to handle individual markdown nodes.
ansi/elements.go:33
Interface
ElementFinisher
ElementFinisher is called when leaving a markdown node.
ansi/elements.go:27
Interface
ElementRenderer
ElementRenderer is called when entering a markdown node.
ansi/elements.go:17
Struct
EmphasisElement
A EmphasisElement is used to render emphasis.
ansi/emphasis.go:9
Struct
HeadingElement
A HeadingElement is used to render headings.
ansi/heading.go:12
TypeAlias
HyperlinkMode
HyperlinkMode controls how hyperlinks are rendered.
ansi/renderer.go:16
Struct
ImageElement
An ImageElement is used to render images elements.
ansi/image.go:216
TypeAlias
ImageProtocol
ImageProtocol is the graphics protocol used to render images inline.
ansi/renderer.go:29
Struct
IndentWriter
IndentWriter is a writer that applies indentation around whatever you write to it.
ansi/margin.go:145
Struct
ItemElement
An ItemElement is used to render items inside a list.
ansi/listitem.go:9
Struct
LinkElement
A LinkElement is used to render hyperlinks.
ansi/link.go:14
Struct
MarginWriter
MarginWriter is a Writer that applies indentation and padding around whatever you write to it.
ansi/margin.go:16
Struct
Options
Options is used to configure an ANSIRenderer.
ansi/renderer.go:50
Struct
PaddingWriter
PaddingWriter is a writer that applies padding around whatever you write to it.
ansi/margin.go:71
Struct
ParagraphElement
A ParagraphElement is used to render individual paragraphs.
ansi/paragraph.go:13
Struct
RenderContext
RenderContext holds the current rendering options and state.
ansi/context.go:13
Struct
StyleBlock
StyleBlock holds the basic style settings for block elements.
ansi/style.go:68
Struct
StyleCodeBlock
StyleCodeBlock holds the style settings for a code block.
ansi/style.go:76
Struct
StyleConfig
StyleConfig is used to configure the styling behavior of an ANSIRenderer.
ansi/style.go:97
Struct
StyleList
StyleList holds the style settings for a list.
ansi/style.go:83
Interface
StyleOverriderElementRenderer
StyleOverriderElementRenderer is called when entering a markdown node with a specific style.
ansi/elements.go:22
Struct
StylePrimitive
StylePrimitive holds all the basic style settings.
ansi/style.go:39
Struct
StyleTable
StyleTable holds the style settings for a table.
ansi/style.go:89
Struct
StyleTask
StyleTask holds the style settings for a task item.
ansi/style.go:61
Struct
TableCellElement
A TableCellElement is used to render a single cell in a row.
ansi/table.go:32
Struct
TableElement
A TableElement is used to render tables.
ansi/table.go:14
Struct
TableHeadElement
A TableHeadElement is used to render a table's head element.
ansi/table.go:29
Struct
TableRowElement
A TableRowElement is used to render a single row in a table.
ansi/table.go:26
Struct
TaskElement
A TaskElement is used to render tasks inside a todo-list.
ansi/task.go:8
Struct
TermRenderer
TermRenderer can be used to render markdown content, posing a depth of customization and styles to fit your needs.
glamour.go:34
FuncType
TermRendererOption
A TermRendererOption sets an option on a TermRenderer.
glamour.go:30
Struct
graphicsSequences
graphicsSequences holds the graphics protocol sequences produced for a single image.
ansi/image.go:202
Struct
imageCaches
imageCaches holds a renderer's image caches: image headers, decoded images, downloaded remote images, and encoded graphics sequences, all keyed by URL
ansi/image.go:98
Struct
imageConfig
imageConfig holds an image's dimensions and encoded format, as read from its header without decoding the pixels.
ansi/image.go:83
TypeAlias
imageSourceKind
imageSourceKind classifies image URLs by where the image data comes from.
ansi/image.go:613
TypeAlias
linkType
ansi/table_links.go:27
Struct
pattern
internal/autolink/autolink.go:10
Struct
sequenceCacheKey
sequenceCacheKey uniquely identifies an encoded graphics sequence.
ansi/image.go:193
Struct
spaceElement
spaceElement renders a single space.
ansi/image.go:1030
Struct
svgMatrix
svgMatrix is a 2D affine transformation mapping (x, y) to (a*x + c*y + e, b*x + d*y + f).
ansi/svg.go:431
Struct
svgPathToken
svgPathToken is a command of an SVG path with its arguments.
ansi/svg.go:864
Struct
svgStyle
svgStyle holds the presentation attributes that SVG text elements inherit from their ancestors.
ansi/svg.go:207
Struct
svgTextRun
svgTextRun is a single run of SVG text with its position and style, resolved to viewBox coordinates.
ansi/svg.go:196
Struct
tableLink
ansi/table_links.go:20
Struct
wrapCloser
wrapCloser models glamour's PaddingWriter: it forwards writes through an inner lipgloss WrapWriter and closes that writer on Close.
ansi/margin_test.go:36