summaryrefslogtreecommitdiffstats
path: root/modules/base/markdown.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-23 16:40:51 +0800
committerslene <vslene@gmail.com>2014-03-23 16:40:51 +0800
commit4adb024715bdb576d7acb2900d933e7196abee4c (patch)
treec00e1e6e9e9887ab068a4b01b599e7140b4ce069 /modules/base/markdown.go
parent91a1b55707fe959c675fee0c0769a1be0106be3a (diff)
downloadgitea-4adb024715bdb576d7acb2900d933e7196abee4c.tar.gz
gitea-4adb024715bdb576d7acb2900d933e7196abee4c.zip
minor fix markdown setting
Diffstat (limited to 'modules/base/markdown.go')
-rw-r--r--modules/base/markdown.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/base/markdown.go b/modules/base/markdown.go
index 2273cd772f..05ce0c833c 100644
--- a/modules/base/markdown.go
+++ b/modules/base/markdown.go
@@ -72,7 +72,7 @@ func (options *CustomRender) Link(out *bytes.Buffer, link []byte, title []byte,
func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte {
htmlFlags := 0
- htmlFlags |= gfm.HTML_USE_XHTML
+ // htmlFlags |= gfm.HTML_USE_XHTML
// htmlFlags |= gfm.HTML_USE_SMARTYPANTS
// htmlFlags |= gfm.HTML_SMARTYPANTS_FRACTIONS
// htmlFlags |= gfm.HTML_SMARTYPANTS_LATEX_DASHES
@@ -81,7 +81,7 @@ func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte {
htmlFlags |= gfm.HTML_SKIP_SCRIPT
htmlFlags |= gfm.HTML_GITHUB_BLOCKCODE
htmlFlags |= gfm.HTML_OMIT_CONTENTS
- htmlFlags |= gfm.HTML_COMPLETE_PAGE
+ // htmlFlags |= gfm.HTML_COMPLETE_PAGE
renderer := &CustomRender{
Renderer: gfm.HtmlRenderer(htmlFlags, "", ""),
urlPrefix: urlPrefix,