Allows to view markdown files in the default browser. For more details, see the API documentation.
Install:
go get github.com/romanyx/mdopen/cmd/mdopenCreate a markdown file:
echo"# Hello from markdown"> hello.mdView it in the default browser as html:
mdopen hello.mdYou will see:
Install:
go get github.com/romanyx/mdopenpackage main
import"github.com/romanyx/mdopen"funcmain() {
f:=strings.NewReader("# Hello from markdown")
opnr:=mdopen.New()
iferr:=opnr.Open(f); err!=nil {
log.Fatal(err)
}
}Please feel free to submit issues, fork the repository and send pull requests!

