thephpleague / html-to-markdown

Convert HTML to Markdown with PHP
MIT License
1.77k stars 205 forks source link

Unexpected behaviour with p tag and number #171

Closed wiseguy1394 closed 5 years ago

wiseguy1394 commented 5 years ago
$converter = new \League\HTMLToMarkdown\HtmlConverter();
echo $converter->convert('<p>1. Point</p>');

Result:

1\. Point

Expected Result:

1. Point

Adding a white space:

$converter = new \League\HTMLToMarkdown\HtmlConverter();
echo $converter->convert('<p> 1. Point</p>');

Result:

1. Point

Please help, i don't want to add white space after each open p tag.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.