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

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