class Jekyll::Tags::LatexBlock

LaTeX tag, HTML rendering via KaTeX

Constants

KATEX_JS
KATEX_PATH

Public Class Methods

new(_tag_name, markup, _options) click to toggle source
Calls superclass method
# File lib/jekyll/tags/latex_block.rb, line 15
def initialize(_tag_name, markup, _options)
  @parsed_options = Parser.new(markup).args
  super
end

Public Instance Methods

render(_context) click to toggle source
Calls superclass method
# File lib/jekyll/tags/latex_block.rb, line 20
def render(_context)
  latex_source = super
  KATEX_JS.call('katex.renderToString', latex_source, @parsed_options)
end