Hi, first off the codepen for what I’m asking about is here: https://codepen.io/glennqhurd/pen/wjBQLr
My current problem is that marked.min.js is giving the error
marked.min.js.map:1 Uncaught SyntaxError: Unexpected token :
when I’m using the code:
function refreshText() {
var text = document.getElementById('txt_input').innerHTML;
document.getElementById('result_text').innerHTML = marked(text);
}
document.getElementById('txt_input').onkeyup = refreshText();
document.getElementById('txt_input').onblur = refreshText();
I clicked the link to the file location of where the error is and it’s in the file I copied starting at the “:” after version. I haven’t had this issue before with any of the other code modules I’ve imported so I was wondering if anybody knew a fix for this. I should also mention that the code works on startup and will translate markdown correctly but after changes are made using the onkeyup properties nothing changes because of the above errors.