Repository navigation
Conversation
Copied text/plain was the saved Markdown, so a "$" that the math syntax escapes pasted as "\$": rm -rf \$(brew --cache) in a terminal. text/plain now leaves out each extension escape that the content reads back the same without. The HTML still carries the saved Markdown, so a paste into the editor does not change.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes usememos/memos#6683.
Copied
text/plainwas the saved Markdown, so a$that the math syntax escapes pasted as\$:Now
text/plainleaves out each extension escape that the content reads back the same without (copyMarkdown). The HTML still carries the saved Markdown, so a paste into the editor and the saved Markdown do not change. If a paragraph reads back different without the escapes (a $x$ b), its copy keeps all of them.Checks:
npm testpasses (10121), with a new test indialect.test.ts.npm run typecheckandnpm run buildpass.rm -rf $(brew --cache),echo $HOME $PATHandcosts $5 and $10copy as typed. The HTML keeps\$.npm run test:e2e.