We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<p>Hello, <em>"Mr"</em> Fox.</p>
I need to insert a spacer when the adjacent sibling is a text node.
The text was updated successfully, but these errors were encountered:
So my approach to solving this is as follows:
If a text node begins with punctuation that needs to be hung:
Then check if its parent node's previous sibling is also a text node, and if so add the appropriate spacer to the end.
Likewise, if a text node ends with punctuation that needs to be hung
Check if its parent node's next sibling is also a text node, and if so add the appropriate spacer to the start.
What if the text node is not the sole child of its parent? Should I not then apply this process to the siblings of the text node and not its parent?
Sorry, something went wrong.
Fixed in 77df127
Merge pull request #6 from danielhaim1/snyk-upgrade-0aab39f4dc5be4a9e…
717567e
…95567eead1c8bd1
No branches or pull requests
<p>Hello, <em>"Mr"</em> Fox.</p>
I need to insert a spacer when the adjacent sibling is a text node.
The text was updated successfully, but these errors were encountered: