You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this PR #28, I had to fix the call made to this._format_code(code) that was wrong. It previously was format_code(code);. Which does not exists. This leads me to think that maybe this feature does not work.
// A function that retro-engineer the hljs generated html to extract the codeasync_extract_code_from_page(page: Page){letcode=awaitpage.evaluate(()=>{letcode="";letpre=document.getElementsByTagName("pre");for(leti=0;i<pre.length;i++){letcode_elem=pre[i].getElementsByTagName("code");if(code_elem.length>0){code+=code_elem[0].innerText;}}returncode;});returnthis._format_code(code);// Used to be format_code(code);}
The text was updated successfully, but these errors were encountered:
In this PR #28, I had to fix the call made to
this._format_code(code)
that was wrong. It previously wasformat_code(code);
. Which does not exists. This leads me to think that maybe this feature does not work.The text was updated successfully, but these errors were encountered: