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 Markdown hanging forever #2513

Merged
merged 4 commits into from
Feb 27, 2023
Merged

Conversation

polqf
Copy link
Contributor

@polqf polqf commented Feb 27, 2023

🔗 Issue Links

Resolves https://github.com/GetStream/ios-issues-tracking/issues/334

🎯 Goal

Fix issue where an unexpected Markdown pattern was hanging forever due to an issue in SwiftyMarkdown

🛠 Implementation

Forked SwiftyMarkdown, and added a defensive measure so that this scenario does not happen again.
GetStream/SwiftyMarkdown@16b4de5

Updated embedded dependencies so that our SDK has this change.

Before After
img img

🧪 Manual Testing Notes

Explain how this change can be tested manually, if applicable.

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change follows zero ⚠️ policy (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (docusaurus, tutorial, CMS)

🎁 Meme

@polqf polqf requested a review from a team as a code owner February 27, 2023 15:09
Copy link
Contributor

@martinmitrevski martinmitrevski left a comment

Choose a reason for hiding this comment

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

LGTM ✅ Just added one question.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

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

LGTM! ✅

Comment on lines +279 to +282

if !shouldAppendStyle && remainingTagsStyle == nil {
break
}
Copy link
Member

Choose a reason for hiding this comment

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

Can we also create a PR for the original repo? This sounds like a nice defensive additional to the original dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, will do that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@polqf polqf merged commit c5bc1e7 into develop Feb 27, 2023
@polqf polqf deleted the bugfix/fix-markdown-hanging-forever branch February 27, 2023 17:05
@testableapple testableapple mentioned this pull request Feb 28, 2023
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.

3 participants