proc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMarkdown

func ReadMarkdown(r io.Reader) ([]byte, string, error)

ReadMarkdown returns text and title

func Run

func Run(r io.Reader, opt *options.Options) (io.Reader, error)

Run Processing markdown file

Types

type PageData

type PageData struct {
	Title string
	CSS   string
	Body  string
}

PageData is field set for HTML template

func NewPage

func NewPage(body []byte, css, title string) *PageData

NewPage returns instance of NewPage

func (*PageData) Render

func (p *PageData) Render() ([]byte, error)

Render returns HTML page text with template

Jump to

Keyboard shortcuts

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