Numbered list in callout lost on copy
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 659
- Forks
- 133
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 110
Description
Describe the bug
Lists inside callouts are not persisted when copying the file.
I suspect the created markdown is parsed to contain a list but that is not valid in our tiptap schema.
To Reproduce
Steps to reproduce the behavior:
- Create a new file. Insert a callout and type a numbered list.
- Save and close the file.
- Copy the file to another file and open that.
- See no numbers inside the callout.
Expected behavior
Copied file looks just like the original.
Screenshots
Before copying:
After copying:
Server details:
cloud.nextcloud.com with RC1 of 30.0.3
Client details:
Firefox 133.0
File content after the copy
::: info
Please make sure to prepare your dev tools to capture the session so we can debug it.
0) Open the file.
1) Open your dev tools.
2) Clear your console and network tabs
3) Force reload the page
4) Run OCA.Text.debugYjs() and make sure you see the output (warning)
5) Confirm `pendingStructs` is `null`
:::
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the callout copy workflow described in the issue and inspect how the created Markdown is parsed against the Tiptap schema. Verify that a numbered list remains inside the callout after copying and that the copied file renders like the original.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100