Updating a note removes the title

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by tracing the notes update command in the TypeScript CLI and follow how its content is sent and the note title is handled. Reproduce the command shown in the issue, then verify that updating content preserves the existing title while replacing the note content.

Written by the indexing model from the issue text.

Description

When I use hackmd-cli notes update --noteId="XYZ" --content="New content" to set the contents of a note, the title of the note is removed. Trying to include the title of the note in the content, e.g.

hackmd-cli notes update --noteId="XYZ" --content="# My title\nNew content"

does not solve the issue: instead, the # My title part is included in the content of the note and the title is still empty.

Dominant language
TypeScript
Stars
176
Forks
13
Avg merge
1d 4h
Merged PRs (30d)
5

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.

More from hackmdio/hackmd-cli

All issues in hackmdio/hackmd-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.