# 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:** [April 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:** 18

<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: [June 26, 2017, 7:37pm UTC](https://meta.discourse.org/t/indenting-of-code-blocks-is-incorrect-when-close-to-text/27799/18 "2017-06-26T19:37:07Z")

</div>

This is fixed:

```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;
}

```

see:

> [@CommonMark testing started here!](https://meta.discourse.org/t/commonmark-testing-started-here/65121):
>
> Per our [migration plans](https://meta.discourse.org/t/discourse-commonmark-migration-plans-confetti-ball-balloon), I just enabled [markdown.it](https://github.com/markdown-it/markdown-it) at Meta. It is an excellent [CommonMark](http://commonmark.org/) compliant engine. I expect quite a few edges to be found during this period of testing. Do not open bugs about the new Engine, just reply here. I/we will be updating the top post here with the list of issues and striking out stuff as it is fixed. Current known issues (to be fixed)white_check_mark Onebox vanishes after you start typing and works not-super consistently white_check_mark pending…

---

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