Markdown Previewer (Failed Test 5 & 6)

Hi I seem to be failing test 5 and 6 even though my markdown previewer is working properly.

write some markdown representing an <h1> : expected false to be true
AssertionError: write some markdown representing an <h1> : expected false to be true
    at o.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:549:14996)
    at o.e (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:425:182)
    at Reflect.get (<anonymous>)
    at Object.e [as get] (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:92:1382)
    at Function.n.isTrue (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:574:1222)
    at n.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:608:140802)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:259477
    at ny.Tg.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:259772)
    at r.Qg.runTest (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274680)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:275616
    at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274033)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274103
    at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:272852)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:273918
    at xy (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:599:14311)
#preview does not contain the H1 element represented by the markdown in the #editor field : expected false to be true
AssertionError: #preview does not contain the H1 element represented by the markdown in the #editor field : expected false to be true
    at o.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:549:14996)
    at o.e (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:425:182)
    at Reflect.get (<anonymous>)
    at Object.e [as get] (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:92:1382)
    at Function.n.isTrue (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:574:1222)
    at n.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:608:143079)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:259477
    at ny.Tg.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:259772)
    at r.Qg.runTest (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274680)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:275616
    at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274033)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:274103
    at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:272852)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:593:273918
    at xy (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:599:14311)

Someone has this kind of problem a few weeks ago. Something related to the version being used if I remembered correctly. You might want to search for it in javascript subforum, might be helpful for your case.

I found the problem and it was due to having outdated MarkedJS script files in index.html

Removing this solved my problem