Do not match overlines across whitespace or newline
continuous-integration/drone/push Build is passing Details

main
Thomas Quinot 1 week ago
parent b70fe4ea83
commit e4a494fb3d

@ -1,7 +1,7 @@
module Jekyll
class OverlineFilter
def self.apply_overline(content)
content.gsub(/~([^~]+)~/, '<span class="overline">\1</span>')
content.gsub(/~([^~\s]+)~/, '<span class="overline">\1</span>')
end
end

Loading…
Cancel
Save