Skip to content

Commit

Permalink
Merge pull request #184 from thephpleague/issue-183
Browse files Browse the repository at this point in the history
Fix #183
  • Loading branch information
colinodell committed Sep 23, 2015
2 parents 3855145 + c6bee5e commit 467d06b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip

## [Unreleased][unreleased]

## [0.11.2] - 2015-09-23
## Fixed
- Fixed parser checking acceptsLines on the wrong element (#183)

## [0.11.1] - 2015-09-22
### Changed
- Tightened up some loose comparisons
Expand Down Expand Up @@ -307,7 +311,8 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
### Added
- Initial commit (compatible with jgm/stmd:spec.txt @ 0275f34)

[unreleased]: https://github.com/thephpleague/commonmark/compare/0.11.1...HEAD
[unreleased]: https://github.com/thephpleague/commonmark/compare/0.11.2...HEAD
[0.11.2]: https://github.com/thephpleague/commonmark/compare/0.11.0...0.11.2
[0.11.1]: https://github.com/thephpleague/commonmark/compare/0.11.0...0.11.1
[0.11.0]: https://github.com/thephpleague/commonmark/compare/0.10.0...0.11.0
[0.10.0]: https://github.com/thephpleague/commonmark/compare/0.9.0...0.10.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ The following table shows which versions of league/commonmark are compatible wit
</thead>
<tbody>
<tr>
<td><strong>0.11.1</strong><br>0.11.0</td>
<td><strong>0.11.x</strong></td>
<td><strong><a href="http://spec.commonmark.org/0.22/">0.22</a></strong></td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion src/DocParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private function incorporateLine(ContextInterface $context)
$this->setAndPropagateLastLineBlank($context, $cursor);

// Handle any remaining cursor contents
if ($context->getContainer()->acceptsLines()) {
if ($context->getTip()->acceptsLines()) {
$context->getContainer()->handleRemainingContents($context, $cursor);
} elseif (!$cursor->isBlank()) {
// Create paragraph container for line
Expand Down

0 comments on commit 467d06b

Please sign in to comment.