mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04: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;
|
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