# 'undefined' appearing in quotes inside \[quote\]s

**URL:** https://meta.discourse.org/t/undefined-appearing-in-quotes-inside-quote-s/24940
**Category:** Bug
**Tags:** markdown-it-review
**Created:** [2015年二月7日 07:46 UTC](https://meta.discourse.org/t/undefined-appearing-in-quotes-inside-quote-s/24940 "2015-02-07T07:46:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2015年二月7日 07:46 UTC](https://meta.discourse.org/t/undefined-appearing-in-quotes-inside-quote-s/24940/1 "2015-02-07T07:46:40Z")

</div>

Minimal reproduction:

```
[quote]>

>[/quote]

```

produces:

> [@](#):
>
> > undefined\>

Now fixed:

[quote]\>

> [/quote]

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [2015年九月7日 16:45 UTC](https://meta.discourse.org/t/undefined-appearing-in-quotes-inside-quote-s/24940/2 "2015-09-07T16:45:13Z")

</div>

Out of curiosity, what should happen?

if I post:

```plaintext
[quote]>

>[/quote]

```

then I see the “undefined” error, but if I use a matched set of `< >` then it’s not so bad

```plaintext
[quote]<

>[/quote]

```

becomes:

[quote]\<

> [/quote]

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2015年九月7日 19:26 UTC](https://meta.discourse.org/t/undefined-appearing-in-quotes-inside-quote-s/24940/3 "2015-09-07T19:26:59Z")

</div>

It’s \> because that’s the Markdown blockquote character.

---

<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: [2017年六月27日 22:01 UTC](https://meta.discourse.org/t/undefined-appearing-in-quotes-inside-quote-s/24940/4 "2017-06-27T22:01:55Z")

</div>

```plaintext
[quote]>

>[/quote]

```

[quote]\>

> [/quote]

Works exactly as expected now 🙂

Multiline BBCode mixed with inline was a 🕯 of 🦀

also

> [@](#):
>
> > test
> 
> > [@](#):
> >
> > > > 
> > > 
> > > WOW

```plaintext
[quote]
> test
[quote]
>>
> WOW
[/quote]
[/quote]  

```

Or what have you if CRAZY is the way you roll.

> [@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: [2017年六月27日 22:01 UTC](https://meta.discourse.org/t/undefined-appearing-in-quotes-inside-quote-s/24940/5 "2017-06-27T22:01:58Z")

</div>


