UNPKG

776 BMarkdownView Raw
1https://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***
7title: 'Hello'
8greatDocumentaries: [
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
19this is a markdown document
20
21---
22
23some text here
24
25---
26
27foo
28This 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
33etc
34
35* [ ] browser tests
36
37# Hello world!