whitefriday

package module
v0.0.0-...-0d890f7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: MIT Imports: 6 Imported by: 0

README

whitefriday

HTML to Markdown converter

Documentation

Index

Constants

View Source
const (
	KEEP = iota
	ESCAPE
	REMOVE
	PANIC
)

Variables

This section is empty.

Functions

func Convert

func Convert(text string) string

func ConvertCustom

func ConvertCustom(text string, state State) string

Types

type Parser

type Parser struct {
	Atoms   []atom.Atom
	Process func(State, *html.Node, func(State) (string, error)) (string, error)
}

type State

type State struct {
	UnknownHTMLMode int
	IsBold          bool
	IsItalic        bool
	ListDepth       int
}

Jump to

Keyboard shortcuts

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