thephpleague / html-to-markdown

Convert HTML to Markdown with PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected behaviour with p tag and number

wiseguy1394 opened this issue · 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.

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.