{"_id":"56b79f827ced7f17003ab198","githubsync":"","slug":"getting-started","updates":[],"__v":2,"body":"Kurenai can be used to parse documents of varying formats that have embedded metadata.\n\nLet's start by taking a look at a Kurenai document.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<metadata exists here>\\n======================\\n<content exists here>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nKurenai documents have both a metadata and content section, separated by three or more `=` equals signs. Both the metadata and the content can support a variety of formats. Let's try another example.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"title\\\": \\\"My title here.\\\"\\n  \\\"date\\\":  \\\"12-12-1984\\\"\\n}\\n===========================\\n# Hi There\\n\\nHow are you doing?\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nHere, we have our metadata defined using [JSON](http://www.json.org/), and our content written in [Markdown](https://daringfireball.net/projects/markdown/) format.\n\nWe'll learn how to parse documents in the next section.","createdAt":"2016-02-07T19:46:04.494Z","project":"56b79ef9a6c10c0d00a2d67d","version":"56b79f817ced7f17003ab196","excerpt":"","link_external":false,"sync_unique":"","title":"Introduction","type":"basic","api":{"auth":"required","params":[],"results":{"codes":[]},"settings":"","url":""},"hidden":false,"link_url":"","order":0,"user":"56b534d0168b5c1700c159a7","category":"56b79f827ced7f17003ab197","childrenPages":[]}
Kurenai can be used to parse documents of varying formats that have embedded metadata. Let's start by taking a look at a Kurenai document. [block:code] { "codes": [ { "code": "<metadata exists here>\n======================\n<content exists here>", "language": "text" } ] } [/block] Kurenai documents have both a metadata and content section, separated by three or more `=` equals signs. Both the metadata and the content can support a variety of formats. Let's try another example. [block:code] { "codes": [ { "code": "{\n \"title\": \"My title here.\"\n \"date\": \"12-12-1984\"\n}\n===========================\n# Hi There\n\nHow are you doing?", "language": "text" } ] } [/block] Here, we have our metadata defined using [JSON](http://www.json.org/), and our content written in [Markdown](https://daringfireball.net/projects/markdown/) format. We'll learn how to parse documents in the next section.