src/Parser/Markdown.php
public function extendedInsert(array $quill)
    {
        if (preg_match("/[\n]{2,}/", $quill['insert']) !== 0) {
            $sub_inserts = preg_split("/[\n]{2,}/", $quill['insert']);
            $i = 0;
            foreach ($sub_inserts as $match) {
                $append = "\n\n";
                if ($i === (count($sub_inserts)-1)) {
                    $append = null;
                }
                $this->deltas[] = new Insert($match . $append);
                $i++;
            }
        } else {
            if (preg_match("/[\n]{1}/", $quill['insert']) !== 0) {
                $sub_inserts = preg_split("/[\n]{1}/", $quill['insert']);
                $i = 0;
                foreach ($sub_inserts as $match) {
                    $append = "\n";
                    if ($i === (count($sub_inserts)-1)) {
                        $append = null;
                    }
                    $this->deltas[] = new Insert($match . $append);
                    $i++;
                }
            } else {
                $this->deltas[] = new Insert($quill['insert']);
            }
        }
    }
public function extendedInsert(array $quill)
    {
        if (preg_match("/[\n]{2,}/", $quill['insert']) !== 0) {
            $sub_inserts = preg_split("/[\n]{2,}/", $quill['insert']);
            $i = 0;
            foreach ($sub_inserts as $match) {
                $append = "\n\n";
                if ($i === (count($sub_inserts)-1)) {
                    $append = null;
                }
                $this->deltas[] = new Insert($match . $append);
                $i++;
            }
        } else {
            if (preg_match("/[\n]{1}/", $quill['insert']) !== 0) {
                $sub_inserts = preg_split("/[\n]{1}/", $quill['insert']);
                $i = 0;
                foreach ($sub_inserts as $match) {
                    $append = "\n";
                    if ($i === (count($sub_inserts)-1)) {
                        $append = null;
                    }
                    $this->deltas[] = new Insert($match . $append);
                    $i++;
                }
            } else {
                $this->deltas[] = new Insert($quill['insert']);
            }
        }
    }
public function extendedInsert ( array $ quill ) { if ( preg_match ( "/[\n]{2,}/" , $ quill [ 'insert' ] ) !== 0 ) { $ sub_inserts = preg_split ( "/[\n]{2,}/" , $ quill [ 'insert' ] ) ; $ i = 0 ; foreach ( $ sub_inserts as $ match ) { $ append = "\n\n" ; if ( $ i === ( count ( $ sub_inserts ) - 1 ) ) { $ append = null ; } $ this -> deltas [ ] = new Insert ( $ match . $ append ) ; $ i ++ ; } } else { if ( preg_match ( "/[\n]{1}/" , $ quill [ 'insert' ] ) !== 0 ) { $ sub_inserts = preg_split ( "/[\n]{1}/" , $ quill [ 'insert' ] ) ; $ i = 0 ; foreach ( $ sub_inserts as $ match ) { $ append = "\n" ; if ( $ i === ( count ( $ sub_inserts ) - 1 ) ) { $ append = null ; } $ this -> deltas [ ] = new Insert ( $ match . $ append ) ; $ i ++ ; } } else { $ this -> deltas [ ] = new Insert ( $ quill [ 'insert' ] ) ; } } }
Extended Quill insert, insert will need to be split before creation
of Deltas

@param array $quill

@return void
Extended Quill insert insert will need to be split before creation of Deltas