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
$html = preg_replace('~>\s+<~', '><', $html); // Strip white space between tags to prevent creation of empty #text nodes
This is stripping out the space which originally appeared between the two tags.
I did a quick test, and removing this line seemed to resolve the issue. However, the lists aren't excluding those text nodes when determining their positions, so they go 1, 3, 5, etc. I'll need to somehow exclude those.
colinodell
changed the title
Spaces are stripped between consecutive span tags
Spaces are stripped between consecutive tags
May 28, 2015
This test currently fails:
$this->html_gives_markdown("<b>Bold</b> <i>Italic</i>", "**Test** *Italic*");
Output:
Need a better way to preserve spaces that exist between consecutive span tags.
The text was updated successfully, but these errors were encountered: