markdown-to-json
Version:
Extracts YAML front matter from markdown files to a single JSON string or file.
54 lines (53 loc) • 1.4 kB
JSON
{
"bellflower": {
"title": "Bellflower",
"author": "guy",
"date": "2012-07-23T00:00:00.000Z",
"template": "article.jade",
"tags": [
"crab",
"rose",
"bells"
],
"preview": "How strange are those old recollections which haunt us without our …",
"iso8601Date": "2012-07-22T17:00:00-07:00",
"basename": "bellflower"
},
"fiddler": {
"title": "The Fiddler",
"author": "herman",
"date": "2013-03-13 13:00",
"template": "article.jade",
"tags": [
"crab",
"violin"
],
"preview": "So my poem is damned, and immortal fame is not for me! I am nobody …",
"iso8601Date": "2013-03-13T13:00:00-07:00",
"basename": "fiddler"
},
"lottery": {
"title": "The Lottery Ticket",
"author": "anton",
"date": "1893-04-01",
"template": "article.jade",
"tags": [
"Fiction",
"Russian"
],
"preview": "Ivan Dmitritch, a middle-class man who lived with his family on an …",
"iso8601Date": "1893-04-01T00:00:00-08:00",
"basename": "lottery"
},
"no-yaml": {
"preview": "Ivan Dmitritch, a middle-class man who lived with his family on an …",
"basename": "no-yaml"
},
"short-content": {
"title": "Short Content",
"tags": "foo bar",
"author": "scott",
"preview": "This would make a great article.",
"basename": "short-content"
}
}