hackmdio / hackmdio/hackmd-cli

Updating a note removes the title

未關閉
#89 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
176
分支
13
平均合併
1 天 4 小時
30 天內合併 PR
5

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先追蹤 TypeScript CLI 中的 `notes update` 命令,並了解其內容如何送出以及筆記標題如何處理。重現 issue 中顯示的命令,然後確認更新內容會保留現有標題,同時取代筆記內容。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。