Closed gchtr closed 7 months ago
Thank you for the report. That is happening because the "following" letter is taken into account (unless there are block-level elements in between - I'll have to check what the DOM tree actually looks like here, but br
will probably need special handling.
First of all, thanks for that awesome library 🙌. It works really well! Our clients love that they don’t have to think about all the small typographic details when publishing content, because this library catches so many things.
I have an issue when with smart quotes processing, when a quoted text is directly followed by a HTML element without spaces around.
As soon as I put spaces on the left or the right of the HTML element, it starts working correctly.
Example
Input
Expected output
Actual output
Test case
Here’s a test case to visualize that. I tried writing a new test for this, but I didn’t find the right place to put it :).