From ebd061598aa6b4bcd02adaf54d794ddbcb5a2757 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Tue, 7 Jan 2020 09:06:14 +0100
Subject: [PATCH] remove email protector plugin

---
 _plugins/hook_mailto_email_protector.rb | 16 ----------------
 1 file changed, 16 deletions(-)
 delete mode 100644 _plugins/hook_mailto_email_protector.rb

diff --git a/_plugins/hook_mailto_email_protector.rb b/_plugins/hook_mailto_email_protector.rb
deleted file mode 100644
index 8b8af8e8..00000000
--- a/_plugins/hook_mailto_email_protector.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-Jekyll::Hooks.register([:pages, :posts, :documents], :pre_render) do |post|
-  # This will run every time the website is built
-
-  # Include a plugin (needs to be in gemfile)
-  include Jekyll::EmailProtect::EmailProtectionFilter
-
-  # Using a simpler version of email regexp
-  email_regexp = /mailto\:(?:[\'\"]*)(?:[\w+\-]\.?)+@[a-z\d\-]+(?:\.[a-z]+)*\.[a-z]+(?:[\'\"]*)/i
-
-  # Take post's content, and transform every occurence of the following regexp (an email)
-  post.content = post.content.gsub(email_regexp) {
-    # For every occurence, apply protection function:
-    |param| "mailto:" + Jekyll::EmailProtect::EmailProtectionFilter::encode_email(param[7..-1].delete("'").delete('"'))
-  }
-end
-
-- 
GitLab