html2md: github.com/lunny/html2md Index | Files

package html2md

import "github.com/lunny/html2md"

Index

Package Files

core.go html2md.go

Constants

const (
    Foreign = iota
    Void
)

func AddConvert Uses

func AddConvert(f func(string) string)

func AddRule Uses

func AddRule(name string, rule *Rule)

func AttrRegExp Uses

func AttrRegExp(attr string) *regexp.Regexp

func Convert Uses

func Convert(content string) string

func Remove Uses

func Remove(ct, tag string) string

func WrapInlineTag Uses

func WrapInlineTag(content, openWrap, closeWrap string) string

type ReplaceFunc Uses

type ReplaceFunc func(string, []string) string

type Rule Uses

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

func A Uses

func A() *Rule

func B Uses

func B() *Rule

func Br Uses

func Br() *Rule

func Code Uses

func Code() *Rule

func H Uses

func H() *Rule

func Hr Uses

func Hr() *Rule

func I Uses

func I() *Rule

func Img Uses

func Img() *Rule

func P Uses

func P() *Rule

func SameRule Uses

func SameRule(tag string, tp int) *Rule

Package html2md imports 4 packages (graph) and is imported by 6 packages. Updated 2018-10-19. Refresh now. Tools for package owners.