1 | https://github.com/juliangruber/balanced-match/blob/master/index.js
|
2 |
|
3 | * [ ] streaming support?
|
4 | * [ ] Since the name of this package is very generic, it would be nice to be able to specify a separators and parsers. For example, parse front-matter as CSON when a *** separator is used:
|
5 |
|
6 | ***
|
7 | title: 'Hello'
|
8 | greatDocumentaries: [
|
9 | 'earthlings.com'
|
10 | 'forksoverknives.com'
|
11 | 'cowspiracy.com'
|
12 | ]
|
13 | ***
|
14 |
|
15 | * [ ] Something like below will break front-matter. It thinks the content between the horizontal lines is metadata.
|
16 |
|
17 | # hello world
|
18 |
|
19 | this is a markdown document
|
20 |
|
21 | ---
|
22 |
|
23 | some text here
|
24 |
|
25 | ---
|
26 |
|
27 | foo
|
28 | This can be avoided by declaring an empty metadata, but maybe a proper fix is to only look for metadata in the beginning of the file.
|
29 |
|
30 | ---
|
31 | ---
|
32 |
|
33 | etc
|
34 |
|
35 | * [ ] browser tests
|
36 |
|
37 | # Hello world!
|