Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 16-Jun-2021 | - | ||||
.gitignore | H A D | 16-Jun-2021 | 25 | 4 | 3 | |
LICENSE | H A D | 16-Jun-2021 | 1 KiB | 22 | 17 | |
README.md | H A D | 16-Jun-2021 | 1.1 KiB | 52 | 36 | |
strip.go | H A D | 16-Jun-2021 | 2.6 KiB | 67 | 54 |
README.md
1# go-strip-markdown 2 3[![GoDoc](https://godoc.org/github.com/writeas/go-strip-markdown?status.svg)](https://godoc.org/github.com/writeas/go-strip-markdown) 4 5A Markdown stripper written in Go (golang). 6 7## Usage 8You could create a simple command-line utility: 9 10```go 11package main 12 13import ( 14 "fmt" 15 "github.com/writeas/go-strip-markdown" 16 "os" 17) 18 19func main() { 20 if len(os.Args) < 2 { 21 os.Exit(1) 22 } 23 fmt.Println(stripmd.Strip(os.Args[1])) 24} 25``` 26 27You could pass it Markdown and get pure, beauteous text in return: 28 29```bash 30./strip "# A Tale of Text Formatting 31 32_One fateful day_ a developer was presented with [Markdown](https://daringfireball.net/projects/markdown/). 33And they wanted **none of it**." 34 35# A Tale of Text Formatting 36# 37# One fateful day a developer was presented with Markdown. 38# And they wanted none of it. 39``` 40 41## Inspiration 42This was largely based off of [remove-markdown](https://github.com/stiang/remove-markdown), a Markdown stripper written in Javascript. 43 44## Used by 45 46This library is used in these projects: 47 48* [WriteFreely](https://github.com/writeas/writefreely) 49 50## License 51MIT. 52