diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-04-10 14:38:48 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-04-10 14:38:48 -0400 |
commit | 8faa0dbcd77ec17bbf88041f46e2fc48f6ca6f31 (patch) | |
tree | 3dff34e53f34632532fd7a05e00e6f06b3e7fb82 /modules/base/markdown.go | |
parent | 2577940c30f6a6d15390974ab36f8c3d1e00f9f4 (diff) | |
parent | a4cbe79567072befd96cf1b7eb319de1e2809ca3 (diff) |
Merge pull request #70 from zhsso/git
Git
Diffstat (limited to 'modules/base/markdown.go')
-rw-r--r-- | modules/base/markdown.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/base/markdown.go b/modules/base/markdown.go index 1893ccee..cc180775 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -133,14 +133,14 @@ 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 // htmlFlags |= gfm.HTML_USE_SMARTYPANTS // htmlFlags |= gfm.HTML_SMARTYPANTS_FRACTIONS // htmlFlags |= gfm.HTML_SMARTYPANTS_LATEX_DASHES - htmlFlags |= gfm.HTML_SKIP_HTML + // htmlFlags |= gfm.HTML_SKIP_HTML htmlFlags |= gfm.HTML_SKIP_STYLE htmlFlags |= gfm.HTML_SKIP_SCRIPT htmlFlags |= gfm.HTML_GITHUB_BLOCKCODE @@ -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 } |