lib/govspeak.rb in govspeak-3.4.0 vs lib/govspeak.rb in govspeak-3.5.0
- old
+ new
@@ -34,11 +34,11 @@
private :kramdown_doc
def to_html
kramdown_doc.to_html
end
-
+
def to_liquid
to_html
end
def to_sanitized_html
@@ -110,9 +110,14 @@
}
extension('highlight-answer') { |body|
%{\n\n<div class="highlight-answer">
#{Govspeak::Document.new(body.strip).to_html}</div>\n}
+ }
+
+ extension('stat-headline', %r${stat-headline}(.*?){/stat-headline}$m) { |body|
+ %{\n\n<aside class="stat-headline">
+#{Govspeak::Document.new(body.strip).to_html}</aside>\n}
}
# FIXME: these surrounded_by arguments look dodgy
extension('external', surrounded_by("x[", ")x")) { |body|
Kramdown::Document.new("[#{body.strip}){:rel='external'}").to_html