projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a812be
)
Update frontmatter.go
author
Henrique Dias
<hacdias@gmail.com>
Wed, 13 Jul 2016 21:53:06 +0000
(22:53 +0100)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Wed, 13 Jul 2016 21:53:06 +0000
(23:53 +0200)
parser/frontmatter.go
patch
|
blob
|
history
diff --git
a/parser/frontmatter.go
b/parser/frontmatter.go
index b185526d7cbb4e76393f9741a2564c5b1be64baf..40418e684f526d2a25a62c7a02c2e5ecf43ec35c 100644
(file)
--- a/
parser/frontmatter.go
+++ b/
parser/frontmatter.go
@@
-149,6
+149,7
@@
func FormatSanitize(kind string) string {
}
}
+// DetectFrontMatter detects the type of frontmatter analysing its first character.
func DetectFrontMatter(mark rune) (f *frontmatterType) {
switch mark {
case '-':