ghwikipp: Don't make all links absolute.

From 6b4fb88bff62312ca49a5d71258c7c08a3c84497 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 17 Jun 2022 14:53:57 -0400
Subject: [PATCH] Don't make all links absolute.

Not sure why we did this. There might be a good reason, in which case I'll
revert and get a better plan.
---
 pandoc-filter.lua | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pandoc-filter.lua b/pandoc-filter.lua
index d1d90bb..fede84a 100644
--- a/pandoc-filter.lua
+++ b/pandoc-filter.lua
@@ -5,10 +5,11 @@ function Link (link)
   if isInternalSection then
     link.target = link.target:lower()
   end
+  -- !!! FIXME: this doesn't work with subdirs, figure out why this was like this at all.
   -- If it's not an absolute path, not an external URL, and not a section link, make it absolute.
-  if not absolute_path and not external_url and not isInternalSection then
-    link.target = '/' .. link.target
-  end
+  --if not absolute_path and not external_url and not isInternalSection then
+  --  link.target = '/' .. link.target
+  --end
   return link
 end