From ee7a558a1d79fc2e9746891903c11dc04b069fc5 Mon Sep 17 00:00:00 2001
From: Nero <41307858+nero@users.noreply.github.com>
Date: Wed, 27 Mar 2024 08:52:16 +0000
Subject: [PATCH] md2html: Remove html entities for summary, input data is
already escaped
---
md2html | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/md2html b/md2html
index 7d8a999..ad89811 100755
--- a/md2html
+++ b/md2html
@@ -233,16 +233,7 @@ function level(new) {
old = new
}
-function escape(text) {
- gsub(/&/, "\\&", text)
- gsub(/, "\\<", text)
- gsub(/>/, "\\>", text)
- gsub(/"/, "\\"", text)
- return text
-}
-
function inline(text) {
- text = escape(text)
text = gensub(/\*\*([^\*]*)\*\*/, "\\1", "g", text)
text = gensub(/\*([^\*]*)\*/, "\\1", "g", text)
text = gensub(/`([^`]*)`/, "\\1
", "g", text)