Module: Djot

Defined in:
lib/djot.rb,
lib/djot/pure.rb,
lib/djot/version.rb,
lib/djot/javascript.rb

Overview

Provides Djot parsing functionalities. Djot.* methods are pointing to JavaScript implementation now. See also Djot::JavaScript for ones pointing to JavaScript implementation.

Defined Under Namespace

Modules: JavaScript, Pure Classes: Error

Constant Summary collapse

VERSION =
"0.0.7".freeze

Class Method Summary collapse

Class Method Details

.render_ast(input, source_positions: false) ⇒ Object



15
16
17
# File 'lib/djot.rb', line 15

def self.render_ast(input, source_positions: false)
  JavaScript.render_ast(input, source_positions: source_positions)
end

.render_html(doc, warn: nil) ⇒ Object



11
12
13
# File 'lib/djot.rb', line 11

def self.render_html(doc, warn: nil)
  JavaScript.render_html(doc, warn: warn)
end