Skip to content

Commit

Permalink
Quote object key values to produce valid json.
Browse files Browse the repository at this point in the history
  • Loading branch information
aratcliffe committed Jan 31, 2018
1 parent d8e1bc1 commit 5168226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
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 5168226

Please sign in to comment.