parser/pageparser: Fix handling of commented out front matter

When the page parser was rewritten in 0.51, this was interpreted literally, but commented out front matter is used in the wild to "hide it from GitHub", e.g:

```
<!--
+++
title = "hello"
+++
-->
```

Fixes #5478
This commit is contained in:
Bjørn Erik Pedersen
2018-11-28 10:21:54 +01:00
parent 7e75aeca80
commit 7540a62834
6 changed files with 65 additions and 13 deletions

View File

@@ -108,7 +108,6 @@ const (
// page items
TypeHTMLStart // document starting with < as first non-whitespace
TypeHTMLComment // We ignore leading comments
TypeLeadSummaryDivider // <!--more-->, # more
TypeFrontMatterYAML
TypeFrontMatterTOML