summaryrefslogtreecommitdiffstats
path: root/helpers/general.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-01-30 07:17:50 -0700
committerspf13 <steve.francia@gmail.com>2015-05-08 22:05:41 -0400
commit563a6302a0a27f1b8412d4ab621e336f83159727 (patch)
tree77ff47e3300e5140173971bf57fc0c3d1527138a /helpers/general.go
parentd4acacd4f50a6c0c25c22e7cc989f196bd225fd5 (diff)
Very experimental support for mmark
Either name the content files as `*.mmark`, or add `markup = "mmark"` in the front matter of your `*.md` content files.
Diffstat (limited to 'helpers/general.go')
-rw-r--r--helpers/general.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/helpers/general.go b/helpers/general.go
index dc9029b06..97b1e7e83 100644
--- a/helpers/general.go
+++ b/helpers/general.go
@@ -19,16 +19,17 @@ import (
"encoding/hex"
"errors"
"fmt"
- "github.com/spf13/cast"
- bp "github.com/spf13/hugo/bufferpool"
- jww "github.com/spf13/jwalterweatherman"
- "github.com/spf13/viper"
"io"
"net"
"path/filepath"
"reflect"
"strings"
"sync"
+
+ "github.com/spf13/cast"
+ bp "github.com/spf13/hugo/bufferpool"
+ jww "github.com/spf13/jwalterweatherman"
+ "github.com/spf13/viper"
)
// Filepath separator defined by os.Separator.
@@ -66,6 +67,8 @@ func GuessType(in string) string {
return "markdown"
case "asciidoc", "adoc", "ad":
return "asciidoc"
+ case "mmark":
+ return "mmark"
case "rst":
return "rst"
case "html", "htm":