ARCHIVED : this project was merged into k8b.
k8b-render
Renderer library for k8b.
Preview
Includes a simple CLI tool to render files.
go run main.go [path to a file to preview]
When run will:
- Print the raw contents of the file
- Print the renderer HTML for this file
- Start a web server and serve the rendered file at
http://localhost:5000
Library
Use this as a HTML renderer library.
import (
markdown "github.com/WhoMeNope/k8b-render/markdown"
)
rendered, err := markdown.NewRenderer().Render(data)
if err != nil {
log.Fatal(err)
}
fmt.Println(string(rendered))
Internals
Uses chroma for code snippet highlighting.