MCPcopy Create free account
hub / github.com/expr-lang/expr / CodeBlock

Struct CodeBlock

test/examples/markdown.go:8–11  ·  view source on GitHub ↗

CodeBlock holds the optional title and content of a code block.

Source from the content-addressed store, hash-verified

6
7// CodeBlock holds the optional title and content of a code block.
8type CodeBlock struct {
9 Title string
10 Content string
11}
12
13func extractCodeBlocksWithTitle(markdown string) []CodeBlock {
14 var blocks []CodeBlock

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected