# Doc **Repository Path**: dog_peng/Doc ## Basic Information - **Project Name**: Doc - **Description**: 把一些网页转换成文档放到手机里面看 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2014-04-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Doc _________ This is a package used to download online document and turn to markdown format on your own storage.For me,I use it to download documents and save them on the cellphone for reading on the way home and school. Markdown convertion is inspired by [to-markdownrkdwon.js](https://github.com/domchristie/to-markdown) ##Examples ``` package main import ( "fmt" "github.com/ggaaooppeenngg/doc" ) func main() { //for example "http://godoc.org/archive/" fmt.Println(doc.WebRender("http://golang.org/doc/code.html")) //output is markdown formed /* archive - GoDoc Toggle navigation [GoDoc](/) * [Home](/) * [Index](/-/index) * [About](/-/about) [Go:](/-/go) archive ### Directories [¶](#pkg-subdirectories) Path|Synopsis ---|--- [tar](/archive/tar)|Package tar implements access to tar archives. [zip](/archive/zip)|Package zip provides support for reading and writing ZIP archives. Updated 2014-03-22. [Refresh now](javascript:document.getElementsByName('x-refresh')[0].submit();). [Tools](?tools) for package owners. [Website Issues](https://github.com/golang/gddo/issues) | [Go Language](http://golang.org/) [Back to top](#) × #### Keyboard shortcuts **?**| : This menu **/**| : Search site **g** then **g**| : Go to top of page **g** then **b**| : Go to end of page **g** then **i**| : Go to index **g** then **e**| : Go to examples Close */ //or use local html file fmt.Println(doc.Render("code.html")) ``` ##TODO: 1. convert no-markdown html(like textarea) 2. test completely covered.