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

Fixed broken newline functionality for markdown #464

Merged
merged 8 commits into from
Oct 13, 2023

Conversation

coryzoon
Copy link
Contributor

@coryzoon coryzoon commented Oct 10, 2023

Fixes #412

Passes markdown content to a function that searches for newline characters \n and if they exist doubles them to \n\n to ensure they break the line.

Solution comes from:
CharlesMangwa/react-native-simple-markdown#68 (comment)

@coryzoon coryzoon added the bug label Oct 11, 2023
@coryzoon coryzoon requested a review from mcbouslog October 11, 2023 11:22
@mcbouslog mcbouslog self-assigned this Oct 11, 2023
Copy link
Contributor

@mcbouslog mcbouslog left a comment

Choose a reason for hiding this comment

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

This looks good 👍 , fixes the content issue noted, as confirmed locally with staging workflow https://master.pfe-preview.zooniverse.org/lab/1974/workflows/3619?env=staging.

Sorry it's trivial but could you change the PR name? These changes don't include any library change.

@coryzoon coryzoon changed the title Added additional markdown library to handle text Fixed broken newline functionality for markdown Oct 12, 2023
@coryzoon
Copy link
Contributor Author

@mcbouslog Sure thing, I've updated the PR name. The ticket originally started out as a library change but didn't end up needing it. I must've forgotten to update the PR name, thanks!

@coryzoon coryzoon merged commit e6ac392 into master Oct 13, 2023
@coryzoon coryzoon deleted the bugfix/issues-412-markdown-newline-character branch October 27, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Odd Line Breaks via Markdown
2 participants