Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5 from rickbergfalk/fix-meta
Put context stuff under meta where it belongs
  • Loading branch information
rickbergfalk committed Nov 18, 2014
2 parents 80842a2 + abe8b09 commit 1242efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion marky-mark.js
Expand Up @@ -123,7 +123,7 @@ exports.parse = function(md, filename, options) {
context.filename = filename;
}

extend(context, options.context || {});
extend(context.meta, options.context || {});
return context;
};

Expand Down
2 changes: 1 addition & 1 deletion test/marky-mark.coffee
Expand Up @@ -165,7 +165,7 @@ describe 'marky-mark', ->
date: new Date('2012-01-01T00:00:00.000Z')
category: "test"
title: "post 1"
foo: 'bar'
foo: 'bar'

context 'with options for marked', ->
Given -> @md = fs.readFileSync __dirname + '/posts/table.md', 'utf8'
Expand Down

0 comments on commit 1242efa

Please sign in to comment.