Documentation ¶
Overview ¶
Package stripmd strips Markdown from text
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Strip ¶
Strip returns the given string sans any Markdown. Where necessary, elements are replaced with their best textual forms, so for example, hyperlinks are stripped of their URL and become only the link text, and images lose their URL and become only the alt text.
Example ¶
fmt.Println(Strip(`# Hello, world! This is [a Go library](https://github.com/writeas/go-strip-markdown) for stripping **Markdown** from _any_ text.`))
Output: Hello, world! This is a Go library for stripping Markdown from any text.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.