# Post text does not render (firstBlock.shift is not a function)

**URL:** https://meta.discourse.org/t/post-text-does-not-render-firstblock-shift-is-not-a-function/59345
**Category:** Bug
**Tags:** markdown-it-review
**Created:** [March 17, 2017, 10:32am UTC](https://meta.discourse.org/t/post-text-does-not-render-firstblock-shift-is-not-a-function/59345 "2017-03-17T10:32:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![masda70](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@masda70](https://meta.discourse.org/u/masda70)
#### Post date: [March 17, 2017, 10:32am UTC](https://meta.discourse.org/t/post-text-does-not-render-firstblock-shift-is-not-a-function/59345/1 "2017-03-17T10:32:45Z")

</div>

The following post text causes the error `Uncaught TypeError: firstBlock.shift is not a function`

```plaintext
- a <div> b
- </div> c

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 17, 2017, 1:16pm UTC](https://meta.discourse.org/t/post-text-does-not-render-firstblock-shift-is-not-a-function/59345/2 "2017-03-17T13:16:40Z")

</div>

confirmed bug… adding #markdown-it-review on to this, @eviltrout your call if you want take this any earlier

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [March 17, 2017, 2:35pm UTC](https://meta.discourse.org/t/post-text-does-not-render-firstblock-shift-is-not-a-function/59345/3 "2017-03-17T14:35:10Z")

</div>

I’ll probably skip it for now – markdown-it is much nicer and this is invalid HTML anyway.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 26, 2017, 2:05pm UTC](https://meta.discourse.org/t/post-text-does-not-render-firstblock-shift-is-not-a-function/59345/4 "2017-06-26T14:05:12Z")

</div>

Fixed per:

> [@CommonMark testing started here!](https://meta.discourse.org/t/commonmark-testing-started-here/65121):
>
> Per our [migration plans](https://meta.discourse.org/t/discourse-commonmark-migration-plans-confetti-ball-balloon), I just enabled [markdown.it](https://github.com/markdown-it/markdown-it) at Meta. It is an excellent [CommonMark](http://commonmark.org/) compliant engine. I expect quite a few edges to be found during this period of testing. Do not open bugs about the new Engine, just reply here. I/we will be updating the top post here with the list of issues and striking out stuff as it is fixed. Current known issues (to be fixed)white_check_mark Onebox vanishes after you start typing and works not-super consistently white_check_mark pending…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 26, 2017, 2:05pm UTC](https://meta.discourse.org/t/post-text-does-not-render-firstblock-shift-is-not-a-function/59345/5 "2017-06-26T14:05:15Z")

</div>


