Skip to content

Commit

Permalink
Removed code from the block elements list since it's inline. (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
straube authored and colinodell committed Oct 31, 2019
1 parent 220762c commit a2184bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function isBlock()
switch ($this->getTagName()) {
case 'blockquote':
case 'body':
case 'code':
case 'div':
case 'h1':
case 'h2':
Expand Down
5 changes: 5 additions & 0 deletions tests/HtmlConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ public function test_strip_comments()
$this->html_gives_markdown('<p>Test</p><!-- Test comment -->', 'Test', array('strip_tags' => true));
}

public function test_preserve_whitespace()
{
$this->html_gives_markdown('<a href="google.com">google.com</a> <code>test</code>', '[google.com](google.com) `test`');
}

public function test_delete_blank_p()
{
$this->html_gives_markdown('<p></p>', '');
Expand Down

0 comments on commit a2184bb

Please sign in to comment.