summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorChristopher Warner <cwarner@kernelcode.com>2026-10-10 18:56:14 -0400
committerChristopher Warner <cwarner@kernelcode.com>2026-10-10 18:56:14 -0400
commitce524225a4c74aed82813b9bc067fd54c8160516 (patch)
treee320077b0c1f1ec7be972694cb29ef654b648f94 /src/main.rs
parentf0c2eecc2c53f9bea72783cc376a337892b5a392 (diff)
downloadiphone-notes-ce524225a4c74aed82813b9bc067fd54c8160516.tar.gz
iphone-notes-ce524225a4c74aed82813b9bc067fd54c8160516.tar.bz2
iphone-notes-ce524225a4c74aed82813b9bc067fd54c8160516.tar.xz
iphone-notes-ce524225a4c74aed82813b9bc067fd54c8160516.zip
feat: format notes with Apple Notes-style structure
Rewrite Markdown bodies into title, headings, spaced paragraphs, and Notes-friendly lists so iPhone notes no longer look like raw dumps. Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ca893b5..280ee5d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -129,6 +129,9 @@ async fn run() -> Result<()> {
serde_json::to_string(&title)?,
text.len()
);
+ println!("--- formatted preview ---");
+ println!("{text}");
+ println!("--- end preview ---");
return Ok(());
}
browser::cmd_create(&paths, &title, &body).await
@@ -158,6 +161,9 @@ async fn run() -> Result<()> {
serde_json::to_string(&title)?,
text.len()
);
+ println!("--- formatted preview ---");
+ println!("{text}");
+ println!("--- end preview ---");
return Ok(());
}
browser::cmd_update(&paths, &match_title, &title, &body).await