mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14:56 +03:00
wrap json examples in code tag
This commit is contained in:
parent
4494f80dbc
commit
33101c7fcf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user