Markdown previewer

Hello. After summer break, I’ve decided to keep going with the development libraries.

So, I kept working on my markdown previewer.

It can parse markdown just fine, but… It doesn’t update correctly.

I have no idea why it’s happening, but I’ve tried a lot of times and have had little to no success, or even ended up breaking the thing once.

The link is here: https://codepen.io/JP-CSStudent/pen/mdYxLJw

The .text() method cannot be used on form inputs or scripts. To set or get the text value of input or textarea elements, use the .val() method.

https://api.jquery.com/text/

1 Like

Thanks, not only for the solution, but also for the documentation!

Uhh… the tests are still not passing somehow

Use the "input" event instead of "change"

For last test you need to set the options for marked, look at the docs.

https://marked.js.org/using_advanced

1 Like