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

<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:** [Abril 22, 2015, 3:51pm UTC](https://meta.discourse.org/t/indenting-of-code-blocks-is-incorrect-when-close-to-text/27799/16 "2015-04-22T15:51:55Z")

</div>

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)

```plaintext
public function checkCredentials($username, $password)
{
    // ...
    $userDetails = $userQuery->fetch(PDO::FETCH_ASSOC);
    $isVerified = password_verify($password, $userDetails['password']);

    if ($isVerified) {
        session_start();
        $_SESSION['currentUser'] = $userDetails;
    }

    return $isVerified;
}

```

---

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