From a8e009b9575c28b014cd876e8a906c0c21ec2449 Mon Sep 17 00:00:00 2001 From: thek4n Date: Mon, 20 Jul 2026 01:13:34 +0300 Subject: [PATCH] feat(links): open in new tab --- CHANGELOG.md | 7 +++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- src/markdown/mod.rs | 4 +++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 381e137..b4bb35c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/lang/en/). +## `v0.6.2` - 20.07.2026 +### Changed +- Links are now opens in new tab. + + +--- + ## `v0.6.1` - 17.07.2026 ### Added - Add compile-time templates minificattion. diff --git a/Cargo.lock b/Cargo.lock index 62dab05..e41ae37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1567,7 +1567,7 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "mdpreview" -version = "0.6.1" +version = "0.6.2" dependencies = [ "askama", "askama_axum", diff --git a/Cargo.toml b/Cargo.toml index 8ec9a88..ff20fdb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mdpreview" -version = "0.6.1" +version = "0.6.2" edition = "2024" authors = ["Vladislav Kan "] build = "build.rs" diff --git a/src/markdown/mod.rs b/src/markdown/mod.rs index f700202..6cfc80a 100644 --- a/src/markdown/mod.rs +++ b/src/markdown/mod.rs @@ -435,7 +435,9 @@ fn render_blockquote(quote_kind: Option) -> String { fn render_link(link_type: LinkType, dest_url: &CowStr<'_>, title: &CowStr<'_>) -> String { match link_type { LinkType::Email => format!(""), - _ => format!(""), + _ => format!( + "" + ), } }