Skip to content

fix: preserve exact exported note content - #113

Merged
Yukaii merged 1 commit into
developfrom
feature/dev-3151
Sep 16, 2026
Merged

Yukaii merged 1 commit into
developfrom
feature/dev-3151

Conversation

@EastSun5566

Copy link
Copy Markdown
Contributor

Summary

  • Export note content without adding a newline.
  • Preserve content with or without a trailing newline.
  • Add tests for exact stdout output.

Testing

  • pnpm test:unit
  • pnpm lint
  • pnpm build
  • Verified byte-for-byte export against a HackMD note.

Closes #111

Copilot AI lite review requested due to automatic review settings September 16, 2026 16:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified, and the changes include focused test coverage.

Pull request overview

Updates note export to preserve content exactly, including trailing newlines and empty notes.

Changes:

  • Outputs note content without adding a newline.
  • Adds tests for exact stdout output.
File summaries
File Description
test/export.test.ts Verifies exact stdout output.
src/commands/export.ts Outputs note content unchanged.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@EastSun5566
EastSun5566 requested a review from Yukaii September 16, 2026 16:24
@Yukaii
Yukaii merged commit 91821c0 into develop Sep 16, 2026
4 checks passed
@Yukaii
Yukaii deleted the feature/dev-3151 branch September 16, 2026 21:25
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.

Preserve exact note content when exporting

3 participants