From 6bd5fdb13f8ee65e6fb4d86a986d3d5425740b30 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 26 Aug 2022 14:35:54 -0500 Subject: Fix backslash escaping --- ht.awk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ht.awk b/ht.awk index 45da70e..8bdc3c4 100755 --- a/ht.awk +++ b/ht.awk @@ -64,7 +64,7 @@ $0 ~ ("^" COMMENT_DELIM) { } else { sep = "\n" } - gsub(/\\/, "\\\\", $0) + # gsub(/\\/, "\\\\", $0) $0 = html_escape($0) # Loop through BLOCK_TYPES for (bt in BLOCK_TYPES) { @@ -140,7 +140,6 @@ $0 ~ ("^" COMMENT_DELIM) { } } # Escape backslash and ` - gsub(/\\/, "\\\\", $0) gsub(/`/, "\\`", $0) # Push to buffer bufpush($0, sep) -- cgit 1.4.1-21-gabe81