From e4a494fb3dfae50baaba0645cccd945fdc068213 Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Mon, 13 Apr 2026 19:02:59 +0200 Subject: [PATCH] Do not match overlines across whitespace or newline --- _source/_plugins/overline.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_source/_plugins/overline.rb b/_source/_plugins/overline.rb index 57d3576..99e3f59 100644 --- a/_source/_plugins/overline.rb +++ b/_source/_plugins/overline.rb @@ -1,7 +1,7 @@ module Jekyll class OverlineFilter def self.apply_overline(content) - content.gsub(/~([^~]+)~/, '\1') + content.gsub(/~([^~\s]+)~/, '\1') end end