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

Bug: Pasting Checklist Item Over Checklist or List Item Over List Item Causes Removal of Checklist/List Indicator #801

Closed
3 tasks done
pjkaufman opened this issue Jul 14, 2023 · 1 comment · Fixed by #802
Assignees
Labels
bug Something isn't working markdown General Markdown or Markdown related issue or feature obsidian Obsidian specific syntax issue or feature resolution/update-made A change has been made that should resolve this issue or request

Comments

@pjkaufman
Copy link
Collaborator

  • I have verified that I am on the latest version of the Linter

Describe the Bug

When pasting a checklist item or items onto other checklist items, if you select to include the checklist indicator it will remove both checklist indicators leaving the resulting text as a no longer valid checklist indicator.

The same applies to the prevent double list indicators on paste

How to Reproduce

Steps to reproduce the behavior:

Paste - [x] item 1 onto the - [x] from the following markdown:

- [x] some item here
- [ ] other checklist item

The issue with double list indicators is the same.

Expected Behavior

The checklist indicator from the paste should be retained in this case.

Expected output if applicable:

- [x] some item here
- [ ] other checklist item

would become

- [x] item 1
- [ ] other checklist item

Screenshots

NA

Device

  • Desktop
  • Mobile

Additional Context

Passing in the selected text should take care of this.

@pjkaufman pjkaufman added bug Something isn't working markdown General Markdown or Markdown related issue or feature obsidian Obsidian specific syntax issue or feature labels Jul 14, 2023
@pjkaufman pjkaufman self-assigned this Jul 14, 2023
@pjkaufman pjkaufman changed the title Bug: Bug: Pasting Checklist Item Over Checklist or List Item Over List Item Causes Removal of Checklist/List Indicator Jul 14, 2023
@pjkaufman pjkaufman moved this to In Progress in Obsidian Linter Jul 14, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Releasing in Obsidian Linter Jul 14, 2023
@pjkaufman pjkaufman added the resolution/update-made A change has been made that should resolve this issue or request label Jul 14, 2023
@pjkaufman
Copy link
Collaborator Author

This has been fixed and should be on master. It will go out in the next release.

@pjkaufman pjkaufman moved this from Releasing to Done in Obsidian Linter Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working markdown General Markdown or Markdown related issue or feature obsidian Obsidian specific syntax issue or feature resolution/update-made A change has been made that should resolve this issue or request
Projects
Archived in project
1 participant