From 3a1520f0dbe57310a27e0687beec8d8ec18a98d7 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Wed, 15 Apr 2020 21:06:30 +0800 Subject: [PATCH] blog: take non-labelled code blocks into account --- src/blog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blog.rs b/src/blog.rs index 7ae4264..6acd57d 100644 --- a/src/blog.rs +++ b/src/blog.rs @@ -253,7 +253,7 @@ impl PostContentCache { // We don't match the end tag because it may span multiple lines // trying to match the end tag could result in accidentally matching // the end tag of another code block. - let regex_code = RegExp::new("
", "ig");
+        let regex_code = RegExp::new("
", "ig");
         let js_html = js_html.replace_by_pattern(®ex_code, "
");
 
         // Transform all non-self-refernece links (does not start with "#") to target="_blank"