You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have some HTML generated via some code which contains non-breaking spaces.
Those non-breaking spaces get converted to regular spaces when converting the HTML to markdown (same thing whether we use the code or the unicode \u00a0 character).
We found no option to preserve those particular spaces. How can we achieve that? We find ourself struggling to keep monetary symbols on the same line as the amount for instance in the final documents.
$str = '<html><p>This is a test and test</p></html>';
$converter = new HtmlConverter();
ray(json_encode($str))->red();
ray(json_encode($converter->convert($str)))->red();
How to reproduce
<html><p>This is a test and test</p></html>
The text was updated successfully, but these errors were encountered:
Version(s) affected
5.1.1
Description
Hi,
We have some HTML generated via some code which contains non-breaking spaces.
Those non-breaking spaces get converted to regular spaces when converting the HTML to markdown (same thing whether we use the
code or the unicode\u00a0
character).We found no option to preserve those particular spaces. How can we achieve that? We find ourself struggling to keep monetary symbols on the same line as the amount for instance in the final documents.
How to reproduce
The text was updated successfully, but these errors were encountered: