# Indenting of code blocks is incorrect when close to text

**URL:** <https://meta.discourse.org/t/indenting-of-code-blocks-is-incorrect-when-close-to-text/27799>\
**Category:** Bug\
**Tags:** markdown-it-review\
**Created:** [Abril 21, 2015, 1:33pm UTC](https://meta.discourse.org/t/indenting-of-code-blocks-is-incorrect-when-close-to-text/27799 "2015-04-21T13:33:16Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [Abril 22, 2015, 3:56pm UTC](https://meta.discourse.org/t/indenting-of-code-blocks-is-incorrect-when-close-to-text/27799/17 "2015-04-22T15:56:53Z")

</div>

> [@sam](#):
>
> This bug has nothing to do with highlight js, our markdown parse is being insane. recategorizing as bug. (add newline here and indenting will be correct)

Thank you. I was starting to wonder that myself and I started in highlight.js as it seemed the obvious choice. It is also why I spent a lot of time trying to update highlight.js within Discourse so I could ensure I test it in relation to Discourse.

---

_[View the full topic](https://meta.discourse.org/t/indenting-of-code-blocks-is-incorrect-when-close-to-text/27799)._
