Skip to content

lxt1045/mdtopdf

 
 

Repository files navigation

mdtopdf

Converts Markdown to PDF

	md, err := os.Open("example.md")
	if err != nil{
		fmt.Println(err)
		return
	}
	defer md.Close()

	pdf, err := os.Create("example.pdf")
	if err != nil {
		fmt.Println(err)
		return
	}
	defer pdf.Close()

	err = mdtopdf.Convert(md, pdf)
	if err != nil {
		fmt.Println(err)
		return
	}

About

Converts Markdown to PDF

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%