Skip to content

Conversation

@Nic0S
Copy link

@Nic0S Nic0S commented Nov 21, 2022

This fixes issues converting text with italics in the middle of the word, for example

aaaaaaitalicbbbb

Or when the space at the end of the word is italicized:

aaaaaitalic bbbb

Or when mixing bold / italic / bold+italic

aaaaitalicbolditalicitalicbbb

I have tested rendering the resulting markdown with both ReactMarkdown (https://github.com/remarkjs/react-markdown) and on iOS with the builtin AttributedString to confirm it renders correctly

This fixes issues converting text with italics in the middle of
the word, for example

aaaaaa<i>italic</i>bbbb

Or when the space at the end of the word is italicized:

aaaaa<i>italic </i>bbbb

Or when mixing bold / italic / bold+italic

aaaa<i>italic<b>bolditalic</b>italic</i>bbb

I have tested rendering the resulting markdown with both
ReactMarkdown (https://github.com/remarkjs/react-markdown) and
on iOS with the builtin AttributedString to confirm it renders
correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant