MCPcopy Create free account

hub / github.com/charmbracelet/glamour / functions

Functions282 in github.com/charmbracelet/glamour

FunctionTestCheckImageSize
(t *testing.T)
ansi/image_test.go:462
FunctionTestClassifyImageURL
(t *testing.T)
ansi/image_test.go:517
FunctionTestCodeBlockChromaStyleBadColor
TestCodeBlockChromaStyleBadColor checks that a chroma color chroma cannot parse is returned as an error and does not panic. An ANSI number or a color
ansi/codeblock_test.go:68
FunctionTestCodeBlockChromaStyleIsPerRender
TestCodeBlockChromaStyleIsPerRender renders the same code block with different chroma styles in one process. Each render must carry its own colors, no
ansi/codeblock_test.go:37
FunctionTestCustomStyle
TestCustomStyle checks the expected errors with custom styling. We need to support built-in styles and custom style sheets.
glamour_test.go:137
FunctionTestDataURLImages
TestDataURLImages ensures inline data: images render, since they involve no network access.
ansi/image_test.go:601
FunctionTestDecodeDataURL
(t *testing.T)
ansi/image_test.go:555
FunctionTestDetect
(t *testing.T)
internal/autolink/autolink_test.go:9
FunctionTestDownscaleImage
(t *testing.T)
ansi/image_test.go:262
FunctionTestImageDisplaySize
(t *testing.T)
ansi/image_test.go:210
FunctionTestImageOrderInHTMLBlocks
TestImageOrderInHTMLBlocks checks that images are drawn in the order they appear in the document: HTML blocks are not wrapped, so their images can be
ansi/svg_test.go:526
FunctionTestImageProtocol
(t *testing.T)
ansi/image_test.go:45
FunctionTestImageProtocolKittyPlaceholders
(t *testing.T)
ansi/image_test.go:106
FunctionTestImageTooLargeIsSkipped
TestImageTooLargeIsSkipped ensures that images whose header declares huge dimensions are never decoded. Without the size check, decoding a GIF like th
ansi/image_test.go:495
FunctionTestImageURLHiddenWhenDisplayed
TestImageURLHiddenWhenDisplayed checks that an image that is displayed is rendered without its URL, which would only be redundant next to it, and that
ansi/image_test.go:653
FunctionTestIndentWriterCloseOrder
TestIndentWriterCloseOrder guards against a use-after-close crash in the writer chain. IndentWriter.pw wraps IndentWriter.w, so closing w before pw us
ansi/margin_test.go:15
FunctionTestInlineBadges
TestInlineBadges checks that images that are one cell row tall, e.g. badges, are drawn in the text flow, so images next to each other stay on one line
ansi/svg_test.go:474
FunctionTestInvalidSVG
TestInvalidSVG checks that an unparsable SVG is not rendered as an image: its URL stays in the output instead.
ansi/image_test.go:931
FunctionTestIsSVGData
TestIsSVGData checks the SVG content sniffer.
ansi/image_test.go:947
FunctionTestLocalImagePath
(t *testing.T)
ansi/image_test.go:406
FunctionTestNormalizeSVGColors
TestNormalizeSVGColors checks that rgba() fill and stroke colors, which the parser rejects, are rewritten into an rgb() color plus an opacity attribut
ansi/svg_test.go:590
FunctionTestNormalizeSVGPath
TestNormalizeSVGPath checks that path data is rewritten into a form parsers read reliably.
ansi/svg_test.go:367
FunctionTestNormalizeSVGPaths
TestNormalizeSVGPaths checks that the path data of a document is rewritten without touching other attributes.
ansi/svg_test.go:425
FunctionTestParseSVGColor
TestParseSVGColor checks the color formats found in SVG documents.
ansi/svg_test.go:219
FunctionTestPerRendererImageCaches
(t *testing.T)
ansi/image_test.go:777
FunctionTestRemoteImageNotLoadedNote
(t *testing.T)
ansi/image_test.go:686
FunctionTestRemoteImageSizeLimit
(t *testing.T)
ansi/image_test.go:744
FunctionTestRemoteImages
(t *testing.T)
ansi/image_test.go:614
FunctionTestRemoteSVGImages
TestRemoteSVGImages checks that remote SVG images are fetched, rasterized and rendered, whatever their content type.
ansi/image_test.go:884
FunctionTestRenderHelpers
(t *testing.T)
glamour_test.go:175
FunctionTestRenderer
(t *testing.T)
ansi/renderer_test.go:25
FunctionTestRendererIssues
(t *testing.T)
ansi/renderer_test.go:92
FunctionTestResolveRelativeURL
(t *testing.T)
ansi/renderer_test.go:151
FunctionTestSVGArcsRender
TestSVGArcsRender checks that paths with arcs are drawn, and that the document's shapes are all rendered.
ansi/svg_test.go:435
FunctionTestSVGBadgeRendering
TestSVGBadgeRendering checks that a badge is displayed at its own size and that its text is drawn, as oksvg alone would leave the badge without one.
ansi/svg_test.go:86
FunctionTestSVGDataURLImages
TestSVGDataURLImages checks that SVG images embedded as data URIs are rendered.
ansi/image_test.go:903
FunctionTestSVGDisplaySize
TestSVGDisplaySize checks that SVG images are sized by their intrinsic CSS pixel size, i.e. one cell per cellPixelWidth x cellPixelHeight pixels.
ansi/svg_test.go:32
FunctionTestSVGImageConfig
TestSVGImageConfig checks that an SVG's intrinsic size is read from its document, and that a document without one is rejected.
ansi/svg_test.go:258
FunctionTestSVGImageRaster
TestSVGImageRaster is a sanity check that rasterizing an SVG yields an image with the badge's colors.
ansi/svg_test.go:336
FunctionTestSVGImageRenders
TestSVGImageRenders checks that an SVG image is rendered in a document, sized to its intrinsic size in cells.
ansi/svg_test.go:303
FunctionTestSVGImages
TestSVGImages checks that SVG images are rasterized and rendered via the graphics protocols.
ansi/image_test.go:853
FunctionTestSVGRGBAGroupRender
TestSVGRGBAGroupRender checks that a transparent rgba() color on a group doesn't hide the children that set their own color.
ansi/svg_test.go:708
FunctionTestSVGRGBAOverlayRender
TestSVGRGBAOverlayRender checks that a document with an rgba() overlay, as badges use for their transparent link areas, is drawn, and that the overlay
ansi/svg_test.go:674
FunctionTestSVGRasterScale
TestSVGRasterScale checks that scaling an SVG keeps its aspect ratio and that the text stays on the image.
ansi/svg_test.go:276
FunctionTestSVGTextRuns
TestSVGTextRuns checks the attributes the text parser resolves.
ansi/svg_test.go:161
FunctionTestSVGTextRunsMalformed
TestSVGTextRunsMalformed checks that a broken document doesn't panic and keeps the text parsed up to the point where it breaks.
ansi/svg_test.go:249
FunctionTestSVGWithoutSize
TestSVGWithoutSize checks that an SVG without an intrinsic size is not rendered as an image: its URL stays in the output instead.
ansi/image_test.go:914
FunctionTestScaleToCells
TestScaleToCells checks that scaling to a cell box uses the physical pixel size of a cell, so a sixel fills the space it reserves. A 40x10 cell box is
ansi/image_test.go:279
FunctionTestSixelImageSize
TestSixelImageSize checks that a sixel is encoded at the pixel size of the cell box it reserves: a cell is roughly 10x20 pixels, so encoding the image
ansi/image_test.go:304
FunctionTestStyles
(t *testing.T)
glamour_test.go:114
FunctionTestTableAscii
(t *testing.T)
glamour_test.go:223
FunctionTestTermRenderer
(t *testing.T)
glamour_test.go:50
FunctionTestTermRendererWriter
(t *testing.T)
glamour_test.go:20
FunctionTestWithChromaFormatterCustom
(t *testing.T)
glamour_test.go:380
FunctionTestWithChromaFormatterDefault
(t *testing.T)
glamour_test.go:359
FunctionTestWithEmoji
(t *testing.T)
glamour_test.go:71
FunctionTestWithHyperlinkModeAuto
(t *testing.T)
glamour_test.go:307
FunctionTestWithHyperlinkModeInline
(t *testing.T)
glamour_test.go:252
FunctionTestWithHyperlinkModeInlineWithBase
(t *testing.T)
glamour_test.go:279
FunctionTestWithPreservedNewLines
(t *testing.T)
glamour_test.go:93
FunctionTestWriteKittyImageTransmission
(t *testing.T)
ansi/image_test.go:327
FunctionTestWriteKittyImageTransmissionOverSSH
(t *testing.T)
ansi/image_test.go:377
FunctionWithImageProtocol
WithImageProtocol sets the graphics protocol used to render images inline. Supported protocols are [ansi.ImageProtocolKitty], [ansi.ImageProtocolSixel
glamour.go:246
FunctionWithInlineTableLinks
WithInlineTableLinks forces tables to render links inline. By default,links are rendered as a list of links at the bottom of the table.
glamour.go:194
FunctionWithMaxImagePixels
WithMaxImagePixels limits the number of pixels of images that are decoded and displayed. Images exceeding the limit are skipped, since decoding them c
glamour.go:270
FunctionWithMaxImageSize
WithMaxImageSize limits the size of rendered images to the given number of terminal columns and rows, in addition to the constraints of the surroundin
glamour.go:257
FunctionWithOptions
WithOptions sets multiple TermRenderer options within a single TermRendererOption.
glamour.go:302
FunctionWithRemoteImageNotLoadedNote
WithRemoteImageNotLoadedNote sets the note appended right after the URL of a remote image that wasn't loaded because remote image loading is disabled
glamour.go:294
FunctionWithRemoteImages
WithRemoteImages enables loading images referenced by http(s) URLs. Remote images are disabled by default: fetching them reveals the reader's IP addre
glamour.go:281
FunctionWithStylesFromJSONBytes
WithStylesFromJSONBytes sets a TermRenderer's styles by parsing styles from jsonBytes.
glamour.go:157
FunctionWithStylesFromJSONFile
WithStylesFromJSONFile sets a TermRenderer's styles from a JSON file.
glamour.go:164
FunctionWithTableWrap
WithTableWrap controls whether table content will wrap if too long. This is true by default. If false, table content will be truncated with an ellipsi
glamour.go:185
MethodWrite
Write writes to the padding writer.
ansi/margin.go:88
MethodWrite
Write writes to the indentation writer.
ansi/margin.go:186
MethodWrite
(p []byte)
ansi/margin_test.go:44
Functionmain
()
internal/generate-style-json/main.go:37
Functionmain
()
examples/helloworld/main.go:9
Functionmain
()
examples/stdin-stdout-custom-styles/main.go:22
Functionmain
()
examples/stdin-stdout/main.go:22
Functionmain
()
examples/artichokes/main.go:20
Functionmain
()
examples/custom_renderer/main.go:9
MethodrenderNode
(w util.BufWriter, source []byte, node ast.Node, entering bool)
ansi/renderer.go:166
← previous201–282 of 282, ranked by callers