fix interpolation tags
parent
ec5aba35fb
commit
36bbea14dd
|
@ -8,7 +8,7 @@ toc: true
|
||||||
|
|
||||||
# John the Baptist's Prophecy (S-1) {#s-1}
|
# 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:
|
It is said in the prophet Isaiah:
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,12 @@ def div_wrap tag, text
|
||||||
"<div class='#{tag}' markdown='1'>#{text}</div>"
|
"<div class='#{tag}' markdown='1'>#{text}</div>"
|
||||||
end
|
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
|
# don't parse this when counting words
|
||||||
def skip &block
|
def skip &block
|
||||||
annotate block do |c|
|
annotate block do |c|
|
||||||
|
@ -28,7 +34,7 @@ end
|
||||||
# interpolations; highlight them
|
# interpolations; highlight them
|
||||||
def interpolation &block
|
def interpolation &block
|
||||||
annotate block do |c|
|
annotate block do |c|
|
||||||
div_wrap :interpolation, c
|
span_wrap :interpolation, c
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue