feat(links): open in new tab
This commit is contained in:
parent
348dc8819d
commit
a8e009b957
@ -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.
|
||||
|
||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1567,7 +1567,7 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
|
||||
|
||||
[[package]]
|
||||
name = "mdpreview"
|
||||
version = "0.6.1"
|
||||
version = "0.6.2"
|
||||
dependencies = [
|
||||
"askama",
|
||||
"askama_axum",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mdpreview"
|
||||
version = "0.6.1"
|
||||
version = "0.6.2"
|
||||
edition = "2024"
|
||||
authors = ["Vladislav Kan <thek4n@yandex.ru>"]
|
||||
build = "build.rs"
|
||||
|
||||
@ -435,7 +435,9 @@ fn render_blockquote(quote_kind: Option<BlockQuoteKind>) -> String {
|
||||
fn render_link(link_type: LinkType, dest_url: &CowStr<'_>, title: &CowStr<'_>) -> String {
|
||||
match link_type {
|
||||
LinkType::Email => format!("<a href=\"mailto:{dest_url}\" title=\"{title}\">"),
|
||||
_ => format!("<a href=\"{dest_url}\" title=\"{title}\">"),
|
||||
_ => format!(
|
||||
"<a href=\"{dest_url}\" title=\"{title}\" target=\"_blank\" rel=\"noopener noreferrer\">"
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user