rule

package
v0.0.0-...-0c97120 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanConvertor

func CleanConvertor(tr *html.Tokenizer, rules ...string) (string, bytes.Buffer)

CleanConvertor return the title and the content of the html in cleaner way

func MdConvertor

func MdConvertor(tr *html.Tokenizer) (string, []string)

MdConvertor provide a handlerFunc plugin for downmark package

Types

type TagToken

type TagToken struct {
	// contains filtered or unexported fields
}

TagToken type struct will be stored in the TokenStack

func NewTagToken

func NewTagToken(name string) TagToken

NewTagToken construct a new TagToken

type TokenStack

type TokenStack []TagToken

TokenStack can store tag that want to to be deferred rendering

func NewTokenStack

func NewTokenStack() TokenStack

NewTokenStack construct a stack to actually store the TagToken

Jump to

Keyboard shortcuts

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