# frozen_string_literal: true require 'asciidoctor' require 'asciidoctor/converter/html5' module Gitlab module Asciidoc class Html5Converter < Asciidoctor::Converter::Html5Converter extend Asciidoctor::Converter::Config register_for 'gitlab_html5' def stem(node) return super unless node.style.to_sym == :latexmath %(
#{node.content}
)
end
def inline_quoted(node)
return super unless node.type.to_sym == :latexmath
%(#{node.text}
)
end
private
def id_attribute(node)
node.id ? %( id="#{node.id}") : nil
end
end
end
end