From e8f1356b564d956e3bc7def441af690065516c8d Mon Sep 17 00:00:00 2001 From: Mike Godfrey Date: Fri, 23 Aug 2013 17:19:59 +0100 Subject: [PATCH] Added ability to specify lists in markdown header items, using ';' as a separator. --- lib/wheat/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wheat/data.js b/lib/wheat/data.js index 4571071..c747902 100644 --- a/lib/wheat/data.js +++ b/lib/wheat/data.js @@ -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;