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

Thomas Quinot 3 weeks ago
parent b70fe4ea83
commit 83e51b9730

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

Loading…
Cancel
Save