Skip to content

Add --markdown flag to note get/set commands#17

Merged
garaemon merged 3 commits intomainfrom
2026.04.01-markdown-flag
Apr 7, 2026
Merged

Add --markdown flag to note get/set commands#17
garaemon merged 3 commits intomainfrom
2026.04.01-markdown-flag

Conversation

@garaemon
Copy link
Copy Markdown
Owner

@garaemon garaemon commented Apr 3, 2026

Summary

  • Add --markdown flag to note get and note set commands
  • Convert HTML notes to Markdown for readable output and Markdown input to HTML for storage
  • Add internal/convert package for HTML/Markdown conversion

Test plan

  • Unit tests for convert package and note command flags
  • Manual test: ./paperpile-cli note get <id> --markdown returns Markdown output

🤖 Generated with Claude Code

garaemon and others added 3 commits April 3, 2026 11:51
Paperpile stores notes as HTML. This adds a --markdown flag so users can
view notes converted to Markdown and write notes in Markdown that get
converted to HTML before saving.

- note get --markdown: converts HTML to Markdown via html-to-markdown
- note set --markdown: converts Markdown to HTML via goldmark
- New internal/convert package for HTML<->Markdown conversion

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The name "convert" was too generic. "markup" better describes
the package's purpose of HTML/Markdown conversion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve merge conflict in cmd/note.go: keep markup package references.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@garaemon garaemon merged commit df54bca into main Apr 7, 2026
3 checks passed
@garaemon garaemon deleted the 2026.04.01-markdown-flag branch April 7, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant