diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-09 21:42:25 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-09 21:42:25 -0400 |
commit | 5d4025cb5a629716bf84f4f5bf3baa97af716df4 (patch) | |
tree | 0302bc6bc306df2f400b8b19fb9531918e09c7ca /modules/base/markdown.go | |
parent | 3487f1728530fd2b0a447fe6fd7ef079cb53eed4 (diff) | |
download | gitea-5d4025cb5a629716bf84f4f5bf3baa97af716df4.tar.gz gitea-5d4025cb5a629716bf84f4f5bf3baa97af716df4.zip |
Add go get meta support
Diffstat (limited to 'modules/base/markdown.go')
-rw-r--r-- | modules/base/markdown.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/base/markdown.go b/modules/base/markdown.go index e1ff3856ec..cc1807750d 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -133,7 +133,7 @@ func RenderSpecialLink(rawBytes []byte, urlPrefix string) []byte { } func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte { - // body := RenderSpecialLink(rawBytes, urlPrefix) + body := RenderSpecialLink(rawBytes, urlPrefix) // fmt.Println(string(body)) htmlFlags := 0 // htmlFlags |= gfm.HTML_USE_XHTML @@ -162,7 +162,7 @@ func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte { extensions |= gfm.EXTENSION_SPACE_HEADERS extensions |= gfm.EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK - body := gfm.Markdown(rawBytes, renderer, extensions) + body = gfm.Markdown(body, renderer, extensions) // fmt.Println(string(body)) return body } |