summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-20 17:31:18 +0800
committerslene <vslene@gmail.com>2014-03-20 17:31:18 +0800
commit21379e30a18fed473ae2bbeb41332919ff80497d (patch)
tree814d9a5fd691f9e96b6aa631b3f0e291475a8dd7 /modules
parentc3532718a79f102f4e19c11868a2c618b482eb6a (diff)
downloadgitea-21379e30a18fed473ae2bbeb41332919ff80497d.tar.gz
gitea-21379e30a18fed473ae2bbeb41332919ff80497d.zip
fix link
Diffstat (limited to 'modules')
-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 a9f4cbf0d7..e49e111c0e 100644
--- a/modules/base/markdown.go
+++ b/modules/base/markdown.go
@@ -36,7 +36,7 @@ func isLink(link []byte) bool {
func IsMarkdownFile(name string) bool {
name = strings.ToLower(name)
switch filepath.Ext(name) {
- case "md", "markdown":
+ case "md", "markdown", "mdown":
return true
}
return false
@@ -61,7 +61,7 @@ type CustomRender struct {
func (options *CustomRender) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) {
if len(link) > 0 && !isLink(link) {
if link[0] == '#' {
- link = append([]byte(options.urlPrefix), link...)
+ // link = append([]byte(options.urlPrefix), link...)
} else {
link = []byte(path.Join(options.urlPrefix, string(link)))
}