Skip to content

Instantly share code, notes, and snippets.

@bkcsoft
Last active July 11, 2016 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkcsoft/dce1a2e16db28b46e1ce4c8df18caaba to your computer and use it in GitHub Desktop.
Save bkcsoft/dce1a2e16db28b46e1ce4c8df18caaba to your computer and use it in GitHub Desktop.
Bug in Blackfriday [Gogs Issue](https://github.com/gogits/gogs/issues/3171)
package main
import (
"fmt"
"github.com/russross/blackfriday"
)
func main() {
input := []byte("```\n[]:()\n[]:)\n[]:(\n[]:x\n[]:testing\n[:testing\n\n[]:\nlinebreak\n[]()\n\n[]:\n[]()\n```")
md := blackfriday.MarkdownCommon(input)
fmt.Println(string(md))
}
[]:()
[]:)
[]:(
[]:x
[]:testing
[:testing

[]:
linebreak
[]()

[]:
[]()





[:testing


[]()


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment