k8b-render

command module
v0.0.0-...-e9b68ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

README

ARCHIVED : this project was merged into k8b.

k8b-render

Go Report Card

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:

  1. Print the raw contents of the file
  2. Print the renderer HTML for this file
  3. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL