lib/rabbit/parser/rd/ext/inline-verbatim.rb in rabbit-0.6.2 vs lib/rabbit/parser/rd/ext/inline-verbatim.rb in rabbit-0.6.3

- old
+ new

@@ -80,9 +80,21 @@ def ext_inline_verb_wait(label, source, content, visitor) label = label.to_s return nil unless /^wait$/ =~ label WaitTag.new end + + def ext_inline_verb_tag(label, source, content, visitor) + label = label.to_s + return nil unless /^tag:(.+?)(?::(.+))?$/ =~ label + name = $1 + content = $2 + if content + CustomTag.new(name, Text.new(visitor.apply_to_String(content))) + else + CustomTag.new(name) + end + end end end end end end