Conversation
no issue The current `regExp` is causing non-link Markdown syntax to be parsed as a link. Example, the markdown syntax for an image would be `, we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
CLA signed, should probably just rerun the check. 😊 |
fantactuka
left a comment
There was a problem hiding this comment.
LGTM, let's wait for CI to pass and can merge!
Awesome thank you! |
|
For some reason the Mac variants are taking forever to complete. We can retry later but let's hold on merging for now in case there's a real issue caused by this PR. |
|
Will test locally too and see if the same happens. 😬 |
|
Sorry, I'm struggling a bit reproducing the failing CI tests... I think it could've been something flaky. Can we rerun the test on CI? |
|
Having a tough time getting tests to run reliably locally, not sure what I'm missing to get it to run as expected, see discussion board post #4591 |
|
@fantactuka could you maybe help me look into why that 1 test is failing? Maybe we can merge main into this and check if tests behave better? Would be great to have this one merged in. |
|
Yea I'm pretty confident this is fine - sorry for the delay |
No issue
The current
regExpis causing non-link Markdown syntax to be parsed as a link.Example, the markdown syntax for an image would be
![alt text](https://example.com/example.jpegwould be detected as link markdown and render it as a link, eg!<a href"">alt text</a>.It completely overrides my custom transformers that wants to parse markdown to a custom image node.
This fix updates the regex to not render a link if
!is in front of the link markdown syntax, allowing the custom transformer to initiate if available.