Class: Katex2HTML::Parser
- Inherits:
-
Object
- Object
- Katex2HTML::Parser
- Defined in:
- lib/katex2html/parser.rb
Instance Method Summary collapse
-
#initialize(html, options = {}) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
Instance Method Details
#parse ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/katex2html/parser.rb', line 9 def parse each_delimiter do |*args| @html = convert_latex_to_katex(*args) @html = process_escapes(*args) if @options[:process_escapes] @html end end |