Class: Gitlab::Asciidoc::Html5Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/asciidoc/html5_converter.rb

Instance Method Summary collapse

Instance Method Details

#convert_inline_quoted(node) ⇒ Object


16
17
18
19
20
# File 'lib/gitlab/asciidoc/html5_converter.rb', line 16

def convert_inline_quoted(node)
  return super unless node.type.to_sym == :latexmath

  %(<code#{id_attribute(node)} data-math-style="inline">#{node.text}</code>)
end

#convert_stem(node) ⇒ Object


10
11
12
13
14
# File 'lib/gitlab/asciidoc/html5_converter.rb', line 10

def convert_stem(node)
  return super unless node.style.to_sym == :latexmath

  %(<pre#{id_attribute(node)} data-math-style="display"><code>#{node.content}</code></pre>)
end