lib/govspeak.rb in govspeak-0.8.18 vs lib/govspeak.rb in govspeak-1.0.0
- old
+ new
@@ -108,13 +108,9 @@
extension('helpful', surrounded_by("%")) { |body|
%{\n\n<div class="application-notice help-notice">\n#{Kramdown::Document.new(body.strip).to_html}</div>\n}
}
- extension('map_link', surrounded_by("((", "))")) { |body|
- %{<div class="map"><iframe width="200" height="200" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="#{body.strip}&output=embed"></iframe><br /><small><a href="#{body.strip}">View Larger Map</a></small></div>}
- }
-
extension('attached-image', /^!!([0-9]+)/) do |image_number|
image = images[image_number.to_i - 1]
if image
caption = image.caption rescue nil
render_image(image.url, image.alt_text, caption)