# Markdown Previewer not passing test 6

**URL:** <https://forum.freecodecamp.org/t/markdown-previewer-not-passing-test-6/186311>\
**Category:** General\
**Created:** [April 18, 2018, 10:52am UTC](https://forum.freecodecamp.org/t/markdown-previewer-not-passing-test-6/186311 "2018-04-18T10:52:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![m-oliv](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/m-oliv/32/18679_2.png) [@m-oliv](https://forum.freecodecamp.org/u/m-oliv)\
**Post date:** [April 18, 2018, 10:52am UTC](https://forum.freecodecamp.org/t/markdown-previewer-not-passing-test-6/186311/1 "2018-04-18T10:52:25Z")

</div>

I have built my markdown previewer recently ([https://codepen.io/m-oliv/full/pVzKPP/](https://codepen.io/m-oliv/full/pVzKPP/)), but I’m having trouble with the tests.

The code isn’t passing the 6th test (“6. When my markdown previewer first loads, the default markdown in the #editor field should be rendered as HTML in the #preview element”).

However, it seems to be working correctly, since the input from the editor is being converted to markdown and presented as HTML in the previewer. You can find the code of my markdown previewer in my codepen (linked above).

I checked, and it doesn’t seem to be a problem with the test, since I’m using the same link that is in the example app in free code camp’s codepen.

I’ve also checked for similar issues in the forums, but didn’t find anything similar.

Do you have any idea how to find and fix the problem?

Thanks.

---

<div class="post-metadata">

**Author:** ![m-oliv](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/m-oliv/32/18679_2.png) [@m-oliv](https://forum.freecodecamp.org/u/m-oliv)\
**Post date:** [April 18, 2018, 2:01pm UTC](https://forum.freecodecamp.org/t/markdown-previewer-not-passing-test-6/186311/3 "2018-04-18T14:01:33Z")

</div>

I’ve figured it out. There was some problem with the input, which somehow included invalid characters.

---

<div class="post-metadata">

**Author:** ![mav1283](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mav1283/32/3706_2.png) [@mav1283](https://forum.freecodecamp.org/u/mav1283)\
**Post date:** [July 23, 2018, 5:03am UTC](https://forum.freecodecamp.org/t/markdown-previewer-not-passing-test-6/186311/4 "2018-07-23T05:03:54Z")

</div>

Hi i have the same problem test 6 is annoying, how did you solve this?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:18pm UTC](https://forum.freecodecamp.org/t/markdown-previewer-not-passing-test-6/186311/5 "2021-01-17T20:18:13Z")

</div>

Closed on January 17, 2021, 8:18pm UTC


