mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
fix: wrap json examples in code tag (#1064)
This commit is contained in:
parent
e82e98ebbb
commit
dc5430e53d
|
@ -4,7 +4,9 @@ export function jsonToHTML(json, maxExpandLevel) {
|
||||||
level = 1;
|
level = 1;
|
||||||
let output = '';
|
let output = '';
|
||||||
output += '<div class="redoc-json">';
|
output += '<div class="redoc-json">';
|
||||||
|
output += '<code>';
|
||||||
output += valueToHTML(json, maxExpandLevel);
|
output += valueToHTML(json, maxExpandLevel);
|
||||||
|
output += '</code>';
|
||||||
output += '</div>';
|
output += '</div>';
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user