Use same backend name, and remove reduntant use of require
This commit is contained in:
parent
a22719d984
commit
077b39283a
|
@ -1,13 +1,12 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'asciidoctor'
|
require 'asciidoctor'
|
||||||
require 'asciidoctor/converter/html5'
|
|
||||||
|
|
||||||
module Gitlab
|
module Gitlab
|
||||||
module Asciidoc
|
module Asciidoc
|
||||||
class Html5Converter < (Asciidoctor::Converter.for 'html5')
|
class Html5Converter < (Asciidoctor::Converter.for 'html5')
|
||||||
|
|
||||||
register_for 'gitlab_html5'
|
register_for 'html5'
|
||||||
|
|
||||||
def convert_stem(node)
|
def convert_stem(node)
|
||||||
return super unless node.style.to_sym == :latexmath
|
return super unless node.style.to_sym == :latexmath
|
||||||
|
|
Loading…
Reference in New Issue