Registry / utility / depado-bfchroma

depado-bfchroma

JSON →
library1.3.0gogounverified

Package bfchroma provides an easy and extensible blackfriday renderer that uses the chroma syntax highlighter to render code blocks.

go get github.com/Depado/bfchroma
INSTALL
IMPORT
SIG · DEPADO-BFCHROMA
D
depado-bfchroma
utilitygov1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bfchroma
github.com/Depado/bfchroma

Renders Markdown with syntax-highlighted code blocks.

package main import ( "fmt" "github.com/Depado/bfchroma" "github.com/russross/blackfriday/v2" ) func main() { input := []byte("```go\nfmt.Println(\"hello\")\n```") output := blackfriday.Run(input, blackfriday.WithRenderer(bfchroma.NewRenderer())) fmt.Println(string(output)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
depado-bfchroma — go get depado-bfchroma · libregistry