[pull] develop from marktext:develop - #121
Merged
Merged
Conversation
Adjusted the wording to align with standard Windows terminology.
* fix: allow copy-paste in same folder with auto-rename (#5138) When pasting a copied file into the same directory, generate a unique name (e.g. 'file (copy).md', 'file (copy 2).md') instead of blocking with 'Source and destination must not be the same.' Cut-paste in the same folder is still blocked (no-op). Closes #5138 * feat: easter egg after 9 copies in same folder * fix: cap same-folder copies at 99 with clear message
…rcement (#4999) - Add husky for git hook management - Add lint-staged to run ESLint --fix + Prettier on staged files - Migrate pnpm.overrides from package.json to pnpm-workspace.yaml (fixes 'pnpm field is no longer read' warning in pnpm v10) - Pre-commit runs: eslint --fix + prettier on src/test .ts/.vue files, prettier on .json/.md/.yaml files Closes #4998
Image attribute values (alt, title, src, etc.) supplied via the image-edit tool were interpolated into an <img> tag using string concatenation without escaping. A crafted attribute containing a double-quote could break out of the attribute and inject arbitrary HTML into the editor buffer. In the Electron renderer context this can escalate beyond simple XSS. Route the value through escapeHTML() before interpolating it into the tag in both updateImage() and replaceImage() (html_tag branch), in the current muya engine (packages/muya) and the legacy muyajs engine (packages/muyajs). Co-authored-by: Sebastion <sebastion@sebastion.dev>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )