Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix: wrap json examples in code tag (Redocly#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Cerman committed Jun 5, 2020
1 parent df67409 commit 34a73b2
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 34a73b2

Please sign in to comment.