nextcloud / nextcloud/text

Numbered list in callout lost on copy

Open
#6,727 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: formatting - lists
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:

  1. Create a new file. Insert a callout and type a numbered list.
  2. Save and close the file.
  3. Copy the file to another file and open that.
  4. See no numbers inside the callout.

Expected behavior
Copied file looks just like the original.

Screenshots
Before copying:

Image

After copying:

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.