metalsmith / markdown

A metalsmith plugin to render markdown files to HTML.
MIT License
63 stars 65 forks source link

Make extra keys optional #25

Closed Kwintenvdb closed 6 years ago

Kwintenvdb commented 7 years ago

This change makes "keys" optional. Currently, if any specified extra key is not present in the file, an exception will be thrown.

I ran into the case a couple of times where I wanted to apply markdown to some of the keys of my files if they are present (but are not present in each file).

woodyrew commented 6 years ago

Thanks for the PR, however I can't see what's been changed because the line-endings or similar have all changed. Could you create a new PR with just the changes to the code please?