From 0d4b08206da443c5b0e70097bff8ecc2ced1b237 Mon Sep 17 00:00:00 2001
From: Nero <41307858+nero@users.noreply.github.com>
Date: Thu, 7 Apr 2022 16:05:26 +0000
Subject: [PATCH] md2html: Support hrefs
---
md2html | 1 +
1 file changed, 1 insertion(+)
diff --git a/md2html b/md2html
index d12d8b9..f24a737 100755
--- a/md2html
+++ b/md2html
@@ -59,6 +59,7 @@ function inline(text) {
text = gensub(/\*\*([^\*]*)\*\*/, "\\1", "g", text)
text = gensub(/\*([^\*]*)\*/, "\\1", "g", text)
text = gensub(/`([^`]*)`/, "\\1
", "g", text)
+ text = gensub(/\[(.*)\]\((.*)\)/, "\\1", "g", text)
return text
}