Use same backend name, and remove reduntant use of require

This commit is contained in:
raju249 2019-06-17 13:04:48 +05:30
parent a22719d984
commit 077b39283a
1 changed files with 1 additions and 2 deletions

View File

@ -1,13 +1,12 @@
# frozen_string_literal: true
require 'asciidoctor'
require 'asciidoctor/converter/html5'
module Gitlab
module Asciidoc
class Html5Converter < (Asciidoctor::Converter.for 'html5')
register_for 'gitlab_html5'
register_for 'html5'
def convert_stem(node)
return super unless node.style.to_sym == :latexmath