Skip to content

Commit

Permalink
Merge pull request #9 from aratcliffe/master
Browse files Browse the repository at this point in the history
Quote object key values to produce valid json.
  • Loading branch information
Kikobeats authored Feb 1, 2018
2 parents d8e1bc1 + 5168226 commit 301eab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = function (doc, styleFile) {
})

return forEach(keys, '{', '}', function (key) {
return '<span ' + style('json-markup-key') + '>' + key + ':</span> ' + visit(obj[key])
return '<span ' + style('json-markup-key') + '>"' + key + '":</span> ' + visit(obj[key])
})
}

Expand Down

0 comments on commit 301eab5

Please sign in to comment.