diff --git a/examples/js/examples.js b/examples/js/examples.js index f456a4a88c..9122e80cdb 100644 --- a/examples/js/examples.js +++ b/examples/js/examples.js @@ -159,7 +159,10 @@ aria.widget.SourceCode.prototype.createCode = function ( switch (childNode.nodeType) { case Node.ELEMENT_NODE: - this.createCode(sourceCodeNode, childNode, indentLevel, false); + // To remove the SVG definitions from the example's source code, add the id `svg_definitions` + if (childNode.id !== 'svg_definitions') { + this.createCode(sourceCodeNode, childNode, indentLevel, false); + } break; case Node.TEXT_NODE: