# Discourse doesn't follow the CommonMark spec for HTML \<pre\> tags inside code spans

**URL:** <https://meta.discourse.org/t/discourse-doesnt-follow-the-commonmark-spec-for-html-pre-tags-inside-code-spans/25406>\
**Category:** Bug\
**Tags:** markdown-it-review\
**Created:** [February 19, 2015, 3:46pm UTC](https://meta.discourse.org/t/discourse-doesnt-follow-the-commonmark-spec-for-html-pre-tags-inside-code-spans/25406 "2015-02-19T15:46:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Ajedi32](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ajedi32/32/107370_2.png) [@Ajedi32](https://meta.discourse.org/u/Ajedi32)\
**Post date:** [February 19, 2015, 3:49pm UTC](https://meta.discourse.org/t/discourse-doesnt-follow-the-commonmark-spec-for-html-pre-tags-inside-code-spans/25406/3 "2015-02-19T15:49:23Z")

</div>

```
This is pre-formatted text.
```

This issue does not occur when the document contains pre-formatted text before the code span containing `<pre>`, or when the document does not contain pre-formatted text at all.

---

_[View the full topic](https://meta.discourse.org/t/discourse-doesnt-follow-the-commonmark-spec-for-html-pre-tags-inside-code-spans/25406)._
