godown

package module
v0.0.0-...-d048dd0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 7 Imported by: 1

README

godown

Build Status Codecov GoDoc Go Report Card

Convert HTML into Markdown

This is work in progress.

Usage

err := godown.Convert(w, r)
checkError(err)

Command Line

$ godown < index.html > index.md

Installation

$ go get github.com/mattn/godown/cmd/godown

TODO

  • escape strings in HTML

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(w io.Writer, r io.Reader, option *Option) error

Convert convert HTML to Markdown. Read HTML from r and write to w.

Types

type Option

type Option struct {
	GuessLang func(string) (string, error)
	Script    bool
	Style     bool
}

Option .

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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