example of highlighting code from a markdown source in pure go with chroma
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
LICENSE
README.md
example.md
main.go
template.html

README.md

markdown-code-highlight-chroma

Example of highlighting code from a markdown source in pure go with the chroma library

Run with

go run main.go > out.html