From a59d19fa3dd05691f581f56035e13def0ad2e0c4 Mon Sep 17 00:00:00 2001
From: Nero <41307858+nero@users.noreply.github.com>
Date: Tue, 9 May 2023 10:56:05 +0000
Subject: [PATCH] regexp escape sequence `\"' is not a known regexp operator
for gawk
---
md2html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/md2html b/md2html
index d4f1107..7d8a999 100755
--- a/md2html
+++ b/md2html
@@ -63,7 +63,7 @@ function escape(text) {
gsub(/&/, "\\&", text)
gsub(/, "\\<", text)
gsub(/>/, "\\>", text)
- gsub(/\"/, "\\"", text)
+ gsub(/"/, "\\"", text)
return text
}
@@ -237,7 +237,7 @@ function escape(text) {
gsub(/&/, "\\&", text)
gsub(/, "\\<", text)
gsub(/>/, "\\>", text)
- gsub(/\"/, "\\"", text)
+ gsub(/"/, "\\"", text)
return text
}
@@ -246,13 +246,13 @@ function inline(text) {
text = gensub(/\*\*([^\*]*)\*\*/, "\\1", "g", text)
text = gensub(/\*([^\*]*)\*/, "\\1", "g", text)
text = gensub(/`([^`]*)`/, "\\1
", "g", text)
- text = gensub(/\[(.*)\]\((.*)\)/, "\\1", "g", text)
+ text = gensub(/\[(.*)\]\((.*)\)/, "\\1", "g", text)
return text
}
/