Closed multiwebinc closed 2 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.
This should probably be reopened.
I get the same results as well.
Turns out a settings needs to be changed to get the header syntax we want
https://github.com/thephpleague/html-to-markdown?tab=readme-ov-file#style-notes
Version(s) affected
5.0.2
Description
Text not within a tag has weird behavior when it is between two tags. The text is combined into the text for the tag after it.
How to reproduce
HTML:
Output:
HTML:
Output:
However this works correctly:
Output:
This appears to happen for any
<tag></tag> Text <tag></tag>
combination that I've tried.I believe this is important because someone could be using line breaks instead of paragraphs since it is visually similar: