html2md

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	Foreign = iota
	Void
)

Variables

This section is empty.

Functions

func AddConvert

func AddConvert(f func(string) string)

func AddRule

func AddRule(name string, rule *Rule)

func AttrRegExp

func AttrRegExp(attr string) *regexp.Regexp

func Convert

func Convert(htmlstr string) (md string)

convert html to markdown 将html转成markdown

func Remove

func Remove(ct, tag string) string

Types

type ReplaceFunc

type ReplaceFunc func(string, []string) string

type Rule

type Rule struct {
	Patterns    []string
	Tp          int
	Replacement ReplaceFunc
}

func A

func A() *Rule

func B

func B() *Rule

func Br

func Br() *Rule

func Code

func Code() *Rule

func H

func H() *Rule

func Hr

func Hr() *Rule

func I

func I() *Rule

func Img

func Img() *Rule

func P

func P() *Rule

func SameRule

func SameRule(tag string, tp int) *Rule

Jump to

Keyboard shortcuts

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