-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for optional mid-matter parsing
Closes GH-6. Reviewed-by: Titus Wormer <[email protected]>
- Loading branch information
Showing
6 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type": "yaml", "marker": "-", "anywhere": true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# YAML not at the top | ||
|
||
--- | ||
title: post | ||
--- | ||
|
||
some text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# YAML not at the top | ||
|
||
--- | ||
title: post | ||
--- | ||
|
||
some text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"type": "root", | ||
"children": [ | ||
{ | ||
"type": "heading", | ||
"depth": 1, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "YAML not at the top", | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 3, | ||
"offset": 2 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 22, | ||
"offset": 21 | ||
}, | ||
"indent": [] | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 1, | ||
"offset": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 22, | ||
"offset": 21 | ||
}, | ||
"indent": [] | ||
} | ||
}, | ||
{ | ||
"type": "yaml", | ||
"value": "title: post", | ||
"position": { | ||
"start": { | ||
"line": 3, | ||
"column": 1, | ||
"offset": 23 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"column": 4, | ||
"offset": 42 | ||
}, | ||
"indent": [ | ||
1, | ||
1 | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "paragraph", | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "some text", | ||
"position": { | ||
"start": { | ||
"line": 7, | ||
"column": 1, | ||
"offset": 44 | ||
}, | ||
"end": { | ||
"line": 7, | ||
"column": 10, | ||
"offset": 53 | ||
}, | ||
"indent": [] | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 7, | ||
"column": 1, | ||
"offset": 44 | ||
}, | ||
"end": { | ||
"line": 7, | ||
"column": 10, | ||
"offset": 53 | ||
}, | ||
"indent": [] | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 1, | ||
"offset": 0 | ||
}, | ||
"end": { | ||
"line": 8, | ||
"column": 1, | ||
"offset": 54 | ||
} | ||
} | ||
} |