Allow for trailing spaces after front matter open/close fences (fixes #208).

This commit is contained in:
David Anson 2019-07-27 18:10:26 -07:00
parent 91b4fcd55f
commit cd7a65cedd
8 changed files with 36 additions and 2 deletions

View file

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