fix interpolation tags

master
muflax 2013-01-17 01:11:21 +01:00
parent ec5aba35fb
commit 36bbea14dd
2 changed files with 8 additions and 2 deletions

View File

@ -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:

View File

@ -11,6 +11,12 @@ def div_wrap tag, text
"<div class='#{tag}' markdown='1'>#{text}</div>"
end
# wrap in span tags
def span_wrap tag, text
"<span class='#{tag}' markdown='1'>#{text}</span>"
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