From 67249d7e5af05d6940e6eaf8a3ec56ed7b835f7a Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 21 Apr 2020 13:04:13 -0300 Subject: [PATCH] Removed double Markdown transformation --- Cargo.toml | 2 +- src/storage/data.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d283b7d..63e12c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "downfav" -version = "0.3.0" +version = "0.3.1" authors = ["Julio Biason "] edition = "2018" diff --git a/src/storage/data.rs b/src/storage/data.rs index a65eaea..4eafa4c 100644 --- a/src/storage/data.rs +++ b/src/storage/data.rs @@ -23,7 +23,7 @@ impl From<&Status> for Data { Self { id: origin.id.to_string(), account: origin.account.acct.to_string(), - text: build_text(origin), + text: dbg!(build_text(origin)), attachments: origin .media_attachments .iter() @@ -48,10 +48,10 @@ fn build_text(status: &Status) -> String { let mut result = String::new(); if title.len() > 0 { result.push_str(title); - result.push_str("\n"); + result.push_str("\n\n"); } - result.push_str(&html2md::parse_html(&base_content)); + result.push_str(&base_content); if let Some(url) = source { result.push_str("\n\n");