diff --git a/lib/render-example.js b/lib/render-example.js index 68a50be95f..0ec8fc097d 100644 --- a/lib/render-example.js +++ b/lib/render-example.js @@ -26,7 +26,8 @@ export default function renderExample(templatePath, nunjucksEnvironment) { const compiledTemplate = nunjucks.compile(template, nunjucksEnvironment, templatePath); let html = compiledTemplate.render(templatePath); - return html.replace(/>\s*/g, '>'); + + return html.replace(/\s*(