MCPcopy Create free account

hub / github.com/charmbracelet/glamour / types & classes

Types & classes53 in github.com/charmbracelet/glamour

StructANSIRenderer
ANSIRenderer renders markdown content as ANSI escaped sequences.
ansi/renderer.go:94
StructBaseElement
BaseElement renders a styled primitive element.
ansi/baseelement.go:17
StructBlockElement
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
TypeAliasBlockStack
BlockStack is a stack of block elements, used to calculate the current indentation & margin level during the rendering process.
ansi/blockstack.go:9
StructChroma
Chroma holds all the chroma settings.
ansi/style.go:4
StructCodeBlockElement
A CodeBlockElement is used to render code blocks.
ansi/codeblock.go:23
StructCodeSpanElement
A CodeSpanElement is used to render codespan.
ansi/codespan.go:6
StructCompoundElement
A CompoundElement renders multiple elements sequentially.
ansi/image.go:1025
StructElement
An Element is used to instruct the renderer how to handle individual markdown nodes.
ansi/elements.go:33
InterfaceElementFinisher
ElementFinisher is called when leaving a markdown node.
ansi/elements.go:27
InterfaceElementRenderer
ElementRenderer is called when entering a markdown node.
ansi/elements.go:17
StructEmphasisElement
A EmphasisElement is used to render emphasis.
ansi/emphasis.go:9
StructHeadingElement
A HeadingElement is used to render headings.
ansi/heading.go:12
TypeAliasHyperlinkMode
HyperlinkMode controls how hyperlinks are rendered.
ansi/renderer.go:16
StructImageElement
An ImageElement is used to render images elements.
ansi/image.go:216
TypeAliasImageProtocol
ImageProtocol is the graphics protocol used to render images inline.
ansi/renderer.go:29
StructIndentWriter
IndentWriter is a writer that applies indentation around whatever you write to it.
ansi/margin.go:145
StructItemElement
An ItemElement is used to render items inside a list.
ansi/listitem.go:9
StructLinkElement
A LinkElement is used to render hyperlinks.
ansi/link.go:14
StructMarginWriter
MarginWriter is a Writer that applies indentation and padding around whatever you write to it.
ansi/margin.go:16
StructOptions
Options is used to configure an ANSIRenderer.
ansi/renderer.go:50
StructPaddingWriter
PaddingWriter is a writer that applies padding around whatever you write to it.
ansi/margin.go:71
StructParagraphElement
A ParagraphElement is used to render individual paragraphs.
ansi/paragraph.go:13
StructRenderContext
RenderContext holds the current rendering options and state.
ansi/context.go:13
StructStyleBlock
StyleBlock holds the basic style settings for block elements.
ansi/style.go:68
StructStyleCodeBlock
StyleCodeBlock holds the style settings for a code block.
ansi/style.go:76
StructStyleConfig
StyleConfig is used to configure the styling behavior of an ANSIRenderer.
ansi/style.go:97
StructStyleList
StyleList holds the style settings for a list.
ansi/style.go:83
InterfaceStyleOverriderElementRenderer
StyleOverriderElementRenderer is called when entering a markdown node with a specific style.
ansi/elements.go:22
StructStylePrimitive
StylePrimitive holds all the basic style settings.
ansi/style.go:39
StructStyleTable
StyleTable holds the style settings for a table.
ansi/style.go:89
StructStyleTask
StyleTask holds the style settings for a task item.
ansi/style.go:61
StructTableCellElement
A TableCellElement is used to render a single cell in a row.
ansi/table.go:32
StructTableElement
A TableElement is used to render tables.
ansi/table.go:14
StructTableHeadElement
A TableHeadElement is used to render a table's head element.
ansi/table.go:29
StructTableRowElement
A TableRowElement is used to render a single row in a table.
ansi/table.go:26
StructTaskElement
A TaskElement is used to render tasks inside a todo-list.
ansi/task.go:8
StructTermRenderer
TermRenderer can be used to render markdown content, posing a depth of customization and styles to fit your needs.
glamour.go:34
FuncTypeTermRendererOption
A TermRendererOption sets an option on a TermRenderer.
glamour.go:30
StructgraphicsSequences
graphicsSequences holds the graphics protocol sequences produced for a single image.
ansi/image.go:202
StructimageCaches
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
StructimageConfig
imageConfig holds an image's dimensions and encoded format, as read from its header without decoding the pixels.
ansi/image.go:83
TypeAliasimageSourceKind
imageSourceKind classifies image URLs by where the image data comes from.
ansi/image.go:613
TypeAliaslinkType
ansi/table_links.go:27
Structpattern
internal/autolink/autolink.go:10
StructsequenceCacheKey
sequenceCacheKey uniquely identifies an encoded graphics sequence.
ansi/image.go:193
StructspaceElement
spaceElement renders a single space.
ansi/image.go:1030
StructsvgMatrix
svgMatrix is a 2D affine transformation mapping (x, y) to (a*x + c*y + e, b*x + d*y + f).
ansi/svg.go:431
StructsvgPathToken
svgPathToken is a command of an SVG path with its arguments.
ansi/svg.go:864
StructsvgStyle
svgStyle holds the presentation attributes that SVG text elements inherit from their ancestors.
ansi/svg.go:207
StructsvgTextRun
svgTextRun is a single run of SVG text with its position and style, resolved to viewBox coordinates.
ansi/svg.go:196
StructtableLink
ansi/table_links.go:20
StructwrapCloser
wrapCloser models glamour's PaddingWriter: it forwards writes through an inner lipgloss WrapWriter and closes that writer on Close.
ansi/margin_test.go:36