Skip to content
New issue

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

Use * instead of _ for italics #263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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