From 83e51b9730f014f7dfe9124ec44ec672ccc71cf6 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..5d0037d 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\n]+)~/, '\1') end end