thephpleague/html-to-markdown

Unexpected behaviour with p tag and number

wiseguy1394 opened this issue · 1 comments

$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 commented

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.