# 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:** 5

<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, 4:44pm UTC](https://meta.discourse.org/t/discourse-doesnt-follow-the-commonmark-spec-for-html-pre-tags-inside-code-spans/25406/5 "2015-02-19T16:44:40Z")

</div>

Right. The only reason I mentioned CommonMark is that it’s the only standard I can point to which explains the correct behavior.

Really though the current behavior of Discourse in this area is less than optimal regardless of whether you’re following CommonMark.

---

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