diff options
Diffstat (limited to 'parser')
-rw-r--r-- | parser/frontmatter.go | 2 | ||||
-rw-r--r-- | parser/page.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go index d12a7b6d6..b185526d7 100644 --- a/parser/frontmatter.go +++ b/parser/frontmatter.go @@ -149,7 +149,7 @@ func FormatSanitize(kind string) string { } } -func detectFrontMatter(mark rune) (f *frontmatterType) { +func DetectFrontMatter(mark rune) (f *frontmatterType) { switch mark { case '-': return &frontmatterType{[]byte(YAMLDelim), []byte(YAMLDelim), HandleYAMLMetaData, false} diff --git a/parser/page.go b/parser/page.go index 5092caddc..ed3f64010 100644 --- a/parser/page.go +++ b/parser/page.go @@ -90,7 +90,7 @@ func (p *page) Metadata() (meta interface{}, err error) { frontmatter := p.FrontMatter() if len(frontmatter) != 0 { - fm := detectFrontMatter(rune(frontmatter[0])) + fm := DetectFrontMatter(rune(frontmatter[0])) meta, err = fm.Parse(frontmatter) if err != nil { return |