# Markdown Previewer failing test 6

**URL:** <https://forum.freecodecamp.org/t/markdown-previewer-failing-test-6/412367>\
**Category:** General\
**Created:** [July 28, 2020, 11:18pm UTC](https://forum.freecodecamp.org/t/markdown-previewer-failing-test-6/412367 "2020-07-28T23:18:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TangTongue](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tangtongue/32/134249_2.png) [@TangTongue](https://forum.freecodecamp.org/u/TangTongue)\
**Post date:** [July 28, 2020, 11:18pm UTC](https://forum.freecodecamp.org/t/markdown-previewer-failing-test-6/412367/1 "2020-07-28T23:18:08Z")

</div>

It’s loading everything quite alright but failing test 6 - "When my markdown previewer first loads, the default markdown in the #editor field should be rendered as HTML in the #preview element”, it says “#preview does not contain the H1 element represented by the markdown in the #editor field : expected false to be true”

I apologize for the appearance of it and appreciate any help, this is my first time using this forum so I’m slightly terrified.

[https://codepen.io/KenzKL/pen/Vwegqbj](https://codepen.io/KenzKL/pen/Vwegqbj)

---

<div class="post-metadata">

**Author:** ![saadanerdetbare](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/saadanerdetbare/32/106470_2.png) [@saadanerdetbare](https://forum.freecodecamp.org/u/saadanerdetbare)\
**Post date:** [July 29, 2020, 12:18am UTC](https://forum.freecodecamp.org/t/markdown-previewer-failing-test-6/412367/2 "2020-07-29T00:18:22Z")

</div>

The culprit is that you are using `<h1>` and `<h2>` in the default markup. This gets interpreted like `&lt;h1&gt;` and `&lt;h2&gt;` in the output which is not the same as the input so the test fails. If you remove the special characters it will work  
/Jakob

---

<div class="post-metadata">

**Author:** ![TangTongue](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tangtongue/32/134249_2.png) [@TangTongue](https://forum.freecodecamp.org/u/TangTongue)\
**Post date:** [July 29, 2020, 12:35am UTC](https://forum.freecodecamp.org/t/markdown-previewer-failing-test-6/412367/3 "2020-07-29T00:35:42Z")

</div>

Oh wow, I never would have figured that out, so glad I asked, thank you so much!!!

---

<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:** [June 1, 2021, 6:45pm UTC](https://forum.freecodecamp.org/t/markdown-previewer-failing-test-6/412367/4 "2021-06-01T18:45:15Z")

</div>

Closed on June 1, 2021, 6:45pm UTC


