Support overline markup

main
Thomas Quinot 2 weeks ago
parent 524833a801
commit 97ccb41f25

@ -0,0 +1,15 @@
module Jekyll
class OverlineFilter
def self.apply_overline(content)
content.gsub(/~([^~]+)~/, '<span class="overline">\1</span>')
end
end
Hooks.register [:documents, :pages], :pre_render do |item|
if item.output_ext == ".html"
item.content = OverlineFilter.apply_overline(item.content)
end
end
end
puts "✅ Overline plugin loaded!"

@ -0,0 +1,10 @@
---
# Custom stylesheet
---
@import "minima";
.overline {
text-decoration: overline;
}
Loading…
Cancel
Save