Skip to content

Commit 3e2f583

Browse files
authored
Merge pull request #71 from posthtml/milestone-1.3.2
Milestone 1.3.2
2 parents 054d575 + 6305424 commit 3e2f583

File tree

3 files changed

+119
-673
lines changed

3 files changed

+119
-673
lines changed

lib/placeholders.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ function placeholders (input, ctx, settings) {
6464
value = escapeHTML(value)
6565
}
6666

67+
// Stringify if value object
68+
if (typeof value === 'object') {
69+
value = JSON.stringify(value)
70+
}
71+
6772
// Replace placeholder on evaluated value
6873
input = input.replace(match, value)
6974
}

0 commit comments

Comments
 (0)