Class: RitexFilter

Inherits:
Codex::Filter show all
Defined in:
lib/codex/filters/ritex_filter.rb

Instance Attribute Summary

Attributes inherited from Codex::Filter

#tag

Instance Method Summary collapse

Methods inherited from Codex::Filter

tag

Instance Method Details

#filter_inline(text, args) ⇒ Object

parse everythingenclosed in :inlinewebtex .. :end



13
14
15
# File 'lib/codex/filters/ritex_filter.rb', line 13

def filter_inline(text,args)
  Ritex::Parser.new.parse(text)
end

#filter_single(text, args) ⇒ Object

Expect something like :webtex alphabetagamma



8
9
10
# File 'lib/codex/filters/ritex_filter.rb', line 8

def filter_single(text,args)
  Ritex::Parser.new.parse(args)
end