Skip to content

Commit

Permalink
fix: wrap json examples in code tag (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriyTykhan authored and RomanHotsiy committed Oct 22, 2019
1 parent e82e98e commit dc5430e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/jsonToHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export function jsonToHTML(json, maxExpandLevel) {
level = 1;
let output = '';
output += '<div class="redoc-json">';
output += '<code>';
output += valueToHTML(json, maxExpandLevel);
output += '</code>';
output += '</div>';
return output;
}
Expand Down

0 comments on commit dc5430e

Please sign in to comment.