dualfroz af172f8665 fix: keep non-breaking spaces in text
Since the `u` flag was added to the whitespace regex in TextConverter
(7f03acf), `\s` also matches U+00A0, so ` ` and literal non-breaking
spaces were turned into regular spaces. Leave U+00A0 out of the collapse.

EmphasisConverter used trim(), which does not strip U+00A0, so a
non-breaking space at the edge of <em>/<strong> would now end up inside
the delimiters (`**Total:&nbsp;**`), where it stops them from flanking the
text. Strip it there too; like before, it becomes a regular space outside
the delimiters.

Fixes #258
2026-10-03 02:31:49 +02:00
2026-10-03 02:31:49 +02:00
2026-09-04 09:09:23 +02:00
S
Description
My contributions to thephpleague/html-to-markdown: 6 commits, 1 merged PRs
83 KiB
0 Stars 1 Watchers 0 Forks
Languages
PHP 100%