Getting Ready To Parse Markdown Front Matter

 Quick and simple, set up some tests to begin parsing the front matter, see the changeset Add stub test for front matter parsing for details. We have the desired location for the parsing set up as a method in Djehuti, we split the detection of front matter out into it's own function so we could make clearer code in the parseMetaData function.

Going forward, we just need to iterate through the front matter, line by line, until we reach the end delimiter (---), and then turn everything into key/value pairs splitting the lines at ": "


Comments

Popular Posts