Skip to content

Commit c9d0569

Browse files
authored
Fix codepen examples on the docs (#2145)
Interactive codepen examples on the docs stopped working after upgrading mkdocs to 1.1.2.
1 parent 4a602f8 commit c9d0569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $(function() {
22
function escape(html) {
33
return html.replace(/&/g, "&amp;").replace(/>/g, "&gt;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
44
}
5-
$(".jsx").each(function() {
5+
$(".language-jsx").each(function() {
66
var text = escape($(this).text());
77
if (text.indexOf("render") === -1) {
88
return;
@@ -29,4 +29,4 @@ script.src = url;
2929

3030
document.head.appendChild(script);
3131

32-
});
32+
});

0 commit comments

Comments
 (0)