From 36bbea14dd3095245e65ea7814acb6af03cd6998 Mon Sep 17 00:00:00 2001 From: muflax Date: Thu, 17 Jan 2013 01:11:21 +0100 Subject: [PATCH] fix interpolation tags --- content_gospel/super/mark.mkd | 2 +- lib/meta.rb | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/content_gospel/super/mark.mkd b/content_gospel/super/mark.mkd index 0e011ff..4ef9a42 100644 --- a/content_gospel/super/mark.mkd +++ b/content_gospel/super/mark.mkd @@ -8,7 +8,7 @@ toc: true # John the Baptist's Prophecy (S-1) {#s-1} -The beginning of the good news about Jesus Christ, <% interpolation do %>the son of God <% end %>. +The beginning of the good news about Jesus Christ, <% interpolation do %>the son of God<% end %>. It is said in the prophet Isaiah: diff --git a/lib/meta.rb b/lib/meta.rb index 28636fa..6ac5ca0 100644 --- a/lib/meta.rb +++ b/lib/meta.rb @@ -11,6 +11,12 @@ def div_wrap tag, text "
#{text}
" end +# wrap in span tags +def span_wrap tag, text + "#{text}" +end + + # don't parse this when counting words def skip &block annotate block do |c| @@ -28,7 +34,7 @@ end # interpolations; highlight them def interpolation &block annotate block do |c| - div_wrap :interpolation, c + span_wrap :interpolation, c end end