NotePlan / NotePlan/plugins

sync lines and numbered lists bug

Open
#308 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API bug
Dominant language
JavaScript
Stars
204
Forks
82
Avg merge
22h 27m
Merged PRs (30d)
3

Description

When I use my new /add sync'd copy to note command on a note, if there any numbered list items in the note they are all converted to bullet lists items.
This shows it ... note that as soon as initiate the command (through a shortcut) and before I actually select the destination note, it changes the bullets.

In the code it is triggered by the combination of both these lines:

  note.addBlockID(para)
  note.updateParagraph(para)

Contributor guide

No contributing guide indexed for this repository

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 at the /add sync'd copy to note command and inspect the interaction between note.addBlockID(para) and note.updateParagraph(para). Reproduce the command with a note containing numbered list items, then verify that the original numbering remains unchanged before and after selecting the destination note.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.