-
Notifications
You must be signed in to change notification settings - Fork 136
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
Data html attributes #626
Data html attributes #626
Conversation
…erate functions for raw input replacements
…link/email/code replacements function
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
A C+ will review this RP soon. I pinged them |
@robertKozik I don't have access to this repo https://github.com/tomekzaw/react-native-markdown-text-input/tree/remove-newline-char-codeblock |
7e5ef16
to
78dde7e
Compare
Hi @situchan, unfortunately, afaik I cannot grant you access to the repo. I believe code review and unit tests should be sufficient in this particular case, along with checking for any regression in the Expensify app. These changes shouldn't impact the normal messaging flow inside new-dot. |
Hey @situchan how is review going? |
Code LGTM. I will complete test by tomorrow |
How is the progress @situchan ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- code review ✅
- unit tests ✅
- checking for any regression in the Expensify app. These changes shouldn't impact the normal messaging flow inside new-dot ✅
- test live markdown in new RN app ❌
@hayata-suenaga Hi! Can we proceed further with merge after @situchan review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good to me, too
@situchan just to double confirm, are we good to merge this? |
yes. This repo doesn't require big checklist like app repo |
This PR extends usage of the
shouldKeepWhitespace
flag which was created for Live Markdown Preview.shouldKeepRawInput
to indicate extended usability of the flagrawInputReplacement
functions as new HTML attributes:data-code-raw
- contains escaped version of code block, new lines/whitespaces includeddata-raw-href
- contains unmodified version of the link/emaildata-link-variant
- contains information whether the link was typed as labeled link or as auto linkScreen.Recording.2023-12-20.at.21.12.04.mov
Fixed Issues
$ Expensify/App#33026
$ Expensify/App#31181
Tests
What unit/integration tests cover your change? What autoQA tests cover your change?
New unit tests were implemented in order to test the changes. To test it by yourself you will need example app.
What tests did you perform that validates your changed worked?
QA
Same as tests
This PR shouldn't introduce any changes within parsing the messages while sending. We can ensure it by checking how links/mails are parsed while being send within the expensify app