Add support for pandoc-style YAML front matter fences ---/... (fixes #153).

This commit is contained in:
David Anson 2019-03-17 22:05:50 -07:00
parent 61d6311a3e
commit df2507f030
4 changed files with 13 additions and 2 deletions

View file

@ -342,7 +342,7 @@ ignores common forms of "front matter". To match differently, specify a custom
The default value:
```js
/^(---|\+\+\+)$[^]*?^\1$(\r\n|\r|\n)/m
/((^---$[^]*?^---$)|(^\+\+\+$[^]*?^(\+\+\+|\.\.\.)$))(\r\n|\r|\n|$)/m
```
Ignores [YAML](https://en.wikipedia.org/wiki/YAML) and