# Markdown / bbcode code/quote bug

**URL:** <https://meta.discourse.org/t/markdown-bbcode-code-quote-bug/299047>\
**Category:** Bug\
**Created:** [March 12, 2024, 5:53pm UTC](https://meta.discourse.org/t/markdown-bbcode-code-quote-bug/299047 "2024-03-12T17:53:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [March 14, 2024, 9:02am UTC](https://meta.discourse.org/t/markdown-bbcode-code-quote-bug/299047/7 "2024-03-14T09:02:05Z")

</div>

Oh wait, I think I understand what you mean 🤦‍♂️

1. Write down the following markdown

```plaintext
[code]
line1
line2
[/code]

```

1. Select the text and click the “Blockquote” button so it prepends a `> ` on each line

```plaintext
> [code]
> line1
> line2
> [/code]

```

Which renders (wrongly) as

> ```plaintext
> line1
> line2
> ```

Instead of

> ```plaintext
> line1
> line2
> 
> ```

This is most likely an issue with the way we parse [BBCode Blocks](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse-markdown-it/src/features/bbcode-block.js) 🤔

---

_[View the full topic](https://meta.discourse.org/t/markdown-bbcode-code-quote-bug/299047)._
