diff --git a/index.html b/index.html
index dda6de8..3884908 100644
--- a/index.html
+++ b/index.html
@@ -1836,7 +1836,7 @@ last_el = op.methodcaller('pop')(<l
>>> literal_eval('[1, 2, 3]')
[1, 2, 3]
>>> literal_eval('abs(1)')
-ValueError: malformed node or string
+ValueError: malformed node or string
#Coroutine
diff --git a/parse.js b/parse.js
index 671449a..5fadeae 100755
--- a/parse.js
+++ b/parse.js
@@ -198,6 +198,15 @@ const OS_RENAME =
'os.rename(from, to) \n' +
'os.replace(from, to) \n';
+const EVAL =
+ '>>> from ast import literal_eval\n' +
+ '>>> literal_eval(\'1 + 2\')\n' +
+ '3\n' +
+ '>>> literal_eval(\'[1, 2, 3]\')\n' +
+ '[1, 2, 3]\n' +
+ '>>> literal_eval(\'abs(1)\')\n' +
+ 'ValueError: malformed node or string\n';
+
function main() {
const html = getMd();
@@ -278,7 +287,7 @@ function highlightCode() {
hljs.highlightBlock(this);
});
fixClasses();
- fixFroms();
+ fixHighlights();
preventPageBreaks();
insertPageBreak();
}
@@ -294,8 +303,9 @@ function fixClasses() {
$('.hljs-class').filter(':contains(class \')').find(':first-child').removeClass('hljs-keyword').addClass('hljs-title')
}
-function fixFroms() {
+function fixHighlights() {
$(`code:contains(os.rename)`).html(OS_RENAME);
+ $(`code:contains(ValueError: malformed node)`).html(EVAL);
}
function preventPageBreaks() {