From eb4e60a17ee6c3496f3b58af0cd4df2d0181002b Mon Sep 17 00:00:00 2001 From: Dan <39170265+chillenberger@users.noreply.github.com> Date: Thu, 2 May 2024 17:17:49 -0700 Subject: [PATCH] Update markdown.rs - prevent json js collision --- pgml-dashboard/src/utils/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index 01ee81a43..84f9243bf 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -200,7 +200,7 @@ impl<'a> From<&str> for CodeFence<'a> { "bash" } else if options.starts_with("python") { "python" - } else if options.starts_with("javascript") || options.starts_with("js") { + } else if options.starts_with("javascript") || options.eq_ignore_ascii_case("js") { "javascript" } else if options.starts_with("postgresql") { "postgresql"
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: