Sha256: b2cefa67e9e2965c5706cd1df955ceeb825e9e04c705d1eff3dd5a8ef49f111a

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

require 'execjs'
require 'jekyll-katex/configuration'

# Holds reference to the katex.min.js lib
module Jekyll
  # Katex fast math rendering, see https://github.com/Khan/KaTeX
  module Katex
    KATEX_JS ||= ExecJS.compile(File.open(Jekyll::Katex::Configuration.js_path).read)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-katex-1.0.0 lib/jekyll-katex/katex_js.rb
jekyll-katex-0.4.3 lib/jekyll-katex/katex_js.rb
jekyll-katex-0.4.1 lib/jekyll-katex/katex_js.rb
jekyll-katex-0.4.0 lib/jekyll-katex/katex_js.rb
jekyll-katex-0.3.1 lib/jekyll-katex/katex_js.rb
jekyll-katex-0.3.0 lib/jekyll-katex/katex_js.rb