Skip to content

Commit

Permalink
Added ability to specify lists in markdown header items, using ';' as a
Browse files Browse the repository at this point in the history
separator.
  • Loading branch information
Mike Godfrey committed Aug 23, 2013
1 parent 64e1ffd commit e8f1356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wheat/data.js
Expand Up @@ -15,9 +15,9 @@ function preProcessMarkdown(markdown) {
var match;
while(match = markdown.match(/^([a-z]+):\s*(.*)\s*\n/i)) {
var name = match[1].toLowerCase(),
value = match[2];
value = match[2].split(';');
markdown = markdown.substr(match[0].length);
props[name] = value;
props[name] = value.length === 1 ? value[0] : value;
}
props.markdown = markdown;

Expand Down

0 comments on commit e8f1356

Please sign in to comment.