From 10f8469a09f601d2ae4939a2d74b0f607782a26b Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 1 Feb 2023 21:40:46 -0800 Subject: [PATCH] Preview JSON and YAML inscriptions as text (#1449) --- src/media.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/media.rs b/src/media.rs index 4438c5b21f..cf3abc7b4f 100644 --- a/src/media.rs +++ b/src/media.rs @@ -50,6 +50,8 @@ impl FromStr for Media { } const TABLE: &[(&str, Media, &[&str])] = &[ + ("application/json", Media::Text, &["json"]), + ("application/yaml", Media::Text, &["yaml", "yml"]), ("application/pdf", Media::Pdf, &["pdf"]), ("application/pgp-signature", Media::Text, &["asc"]), ("audio/flac", Media::Audio, &["flac"]),