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

Add multiple links support to markdown codecs #348

Merged

Conversation

simonbengtsson
Copy link
Contributor

@simonbengtsson simonbengtsson commented May 9, 2024

Not sure if you want to merge this or not since the new link regex does not support having brackets inside of link urls etc. It does support multiple links however which in my project was more important. Added a test as an example of a markdown string with two links that the previous regex could not parse.

Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.96%. Comparing base (6a9fcd2) to head (d0ba673).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #348      +/-   ##
==========================================
+ Coverage   87.94%   87.96%   +0.02%     
==========================================
  Files          64       64              
  Lines       10349    10368      +19     
==========================================
+ Hits         9101     9120      +19     
  Misses       1248     1248              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@amantoux amantoux left a comment

Choose a reason for hiding this comment

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

Many thanks for this contribution. I have some comments if you can please take a look.

packages/parchment/lib/src/codecs/markdown.dart Outdated Show resolved Hide resolved
@amantoux amantoux requested a review from Amir-P May 10, 2024 12:54
Copy link
Member

@Amir-P Amir-P left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for contributing!

@amantoux amantoux merged commit 840bf8b into fleather-editor:master May 10, 2024
3 checks passed
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