Skip to content
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

small adjustment to textarea enclosure wrapping #440

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

asdfzdfj
Copy link
Contributor

  • allow tilde (~) to cycle up to 2 enclosures, although it looks like GFM spec allows strikethrough text to be written with just 1 tilde, many place only allows 2 tildes (~~) for marking strikethrough text
  • remove delete execCommand when toggling enclosure, it mess with undo stack in a rather clunky way: what appears to be a single operation results in 2 undos, one that deletes the selected text and one for changing the enclosure. also the insertText command generally overwrites selected texts if there's any already

- allow tilde (`~`) to cycle up to 2 enclosures, although it looks like
  GFM allows strikethrough text to be written with just one (1) tilde,
  many place only use `~~` for marking strikethrough text,
- remove delete execCommand when toggling enclosure, it mess with undo
  stack in a rather clunky way, and insertText generally overwrites
  selected texts if there's any
@asdfzdfj asdfzdfj merged commit 6b61bd3 into main Jan 16, 2024
7 checks passed
@asdfzdfj asdfzdfj deleted the fix/textarea-enclosure-cycle-adjust branch January 16, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants