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

Fix: Render unicode bullet as list in Markdown preview #1922

Merged
merged 1 commit into from
Feb 21, 2020

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented Feb 20, 2020

Previously we have been failing to render bulleted-lists which use the
Unicode \u2022 "Bullet". The preview would fail to show the line as
a new list item and therefore inline it and any successive list items
into a single paragraph/item.

Now we are replacing those bullets before rendering the Markdown so
that it will render properly as any other bullet would.

Testing

Create a note with a Unicode bullet for the list items

 - one
 + two
 * three
 • this is the Unicode bullet

In develop it will render inline with the previous item inside the Preview.
Screen Shot 2020-02-20 at 1 57 10 PM

In this branch it should appear as a proper rendered bullet.
Screen Shot 2020-02-20 at 1 56 41 PM

Previously we have been failing to render bulleted-lists which use the
Unicode `\u2022` "Bullet". The preview would fail to show the line as
a new list item and therefore inline it and any successive list items
into a single paragraph/item.

Now we are replacing those bullets before rendering the Markdown so
that it will render properly as any other bullet would.
@dmsnell dmsnell requested a review from a team February 20, 2020 20:58
Copy link
Contributor

@belcherj belcherj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it.

@dmsnell dmsnell merged commit 8dbda58 into develop Feb 21, 2020
@dmsnell dmsnell deleted the fix/render-unicode-bullets branch February 21, 2020 01:56
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.

2 participants