-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Task - Mark down is not copied when task preview is copied to clipboard. #58572
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
Merged
robertjchen
merged 16 commits into
Expensify:main
from
Krishna2323:krishna2323/issue/58154
Apr 3, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ede02ac
fix: Task - Mark down is not copied when task preview is copied to cl…
Krishna2323 066b75c
fix: Web - Task - Block quote line is invisible when hovering over Ti…
Krishna2323 aff6f4c
fix: StrongRenderer.
Krishna2323 952b873
fix extra line in task title.
Krishna2323 6630dae
Merge branch 'Expensify:main' into krishna2323/issue/58154
Krishna2323 622ab5b
fix: iOS - Task - Content is cut off when block quote or code block i…
Krishna2323 4f73211
remove pre tag style from title.
Krishna2323 ceef474
Merge branch 'Expensify:main' into krishna2323/issue/58154
Krishna2323 513b2b2
update props name.
Krishna2323 61612b6
Merge branch 'main' into krishna2323/issue/58154
Krishna2323 38c8962
fix duplicated code.
Krishna2323 2c64e73
use getMixedUAStyles for blockquote styles.
Krishna2323 4119667
remove duplicate styles.
Krishna2323 ed4e0cd
fix blockquote styles.
Krishna2323 7f3bc9b
Merge branch 'Expensify:main' into krishna2323/issue/58154
Krishna2323 69dbbb2
Merge branch 'Expensify:main' into krishna2323/issue/58154
Krishna2323 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,4 +106,11 @@ function removeDoubleQuotes(text = '') { | |
return text.replace(/"/g, ''); | ||
} | ||
|
||
export default {sanitizeString, isEmptyString, removeInvisibleCharacters, normalizeAccents, normalizeCRLF, lineBreaksToSpaces, getFirstLine, removeDoubleQuotes}; | ||
/** | ||
* Remove pre tag from the html | ||
*/ | ||
function removePreCodeBlock(text = '') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we have tests for this method There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The function is quite simple, and a test might not add much value. |
||
return text.replace(/<pre[^>]*>|<\/pre>/g, ''); | ||
} | ||
|
||
export default {sanitizeString, isEmptyString, removeInvisibleCharacters, normalizeAccents, normalizeCRLF, lineBreaksToSpaces, getFirstLine, removeDoubleQuotes, removePreCodeBlock}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@mananjadhav, I removed the custom blockquote renderer file after learning a better way to override styles for the task title from @bernhardoj's PR. This approach works really well for our case.