mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
Merge branch 'master' of github.com:gogits/gogs
This commit is contained in:
commit
d786a74a9f
2 changed files with 4 additions and 3 deletions
3
bee.json
3
bee.json
|
@ -13,7 +13,8 @@
|
||||||
"others": [
|
"others": [
|
||||||
"modules",
|
"modules",
|
||||||
"$GOPATH/src/github.com/gogits/binding",
|
"$GOPATH/src/github.com/gogits/binding",
|
||||||
"$GOPATH/src/github.com/gogits/git"
|
"$GOPATH/src/github.com/gogits/git",
|
||||||
|
"$GOPATH/src/github.com/gogits/gfm"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"cmd_args": [
|
"cmd_args": [
|
||||||
|
|
|
@ -72,7 +72,7 @@ func (options *CustomRender) Link(out *bytes.Buffer, link []byte, title []byte,
|
||||||
|
|
||||||
func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte {
|
func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte {
|
||||||
htmlFlags := 0
|
htmlFlags := 0
|
||||||
htmlFlags |= gfm.HTML_USE_XHTML
|
// htmlFlags |= gfm.HTML_USE_XHTML
|
||||||
// htmlFlags |= gfm.HTML_USE_SMARTYPANTS
|
// htmlFlags |= gfm.HTML_USE_SMARTYPANTS
|
||||||
// htmlFlags |= gfm.HTML_SMARTYPANTS_FRACTIONS
|
// htmlFlags |= gfm.HTML_SMARTYPANTS_FRACTIONS
|
||||||
// htmlFlags |= gfm.HTML_SMARTYPANTS_LATEX_DASHES
|
// 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_SKIP_SCRIPT
|
||||||
htmlFlags |= gfm.HTML_GITHUB_BLOCKCODE
|
htmlFlags |= gfm.HTML_GITHUB_BLOCKCODE
|
||||||
htmlFlags |= gfm.HTML_OMIT_CONTENTS
|
htmlFlags |= gfm.HTML_OMIT_CONTENTS
|
||||||
htmlFlags |= gfm.HTML_COMPLETE_PAGE
|
// htmlFlags |= gfm.HTML_COMPLETE_PAGE
|
||||||
renderer := &CustomRender{
|
renderer := &CustomRender{
|
||||||
Renderer: gfm.HtmlRenderer(htmlFlags, "", ""),
|
Renderer: gfm.HtmlRenderer(htmlFlags, "", ""),
|
||||||
urlPrefix: urlPrefix,
|
urlPrefix: urlPrefix,
|
||||||
|
|
Loading…
Reference in a new issue