Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraju249 <rajendrakadam249@gmail.com>2019-06-17 08:59:45 +0300
committerraju249 <rajendrakadam249@gmail.com>2019-06-17 08:59:45 +0300
commitc2ef8589e3b010dcf27adb31dea3ffe72d7a3f6d (patch)
tree26b9b8d8dab5d34a8887a03e0b5061129a534168 /lib/gitlab/asciidoc
parent207cdba1f2583541fd1847947f081aff9eb5cc68 (diff)
Upgrade asciidoctor version to 2.0.10 and change menthod names in html5_converter
Diffstat (limited to 'lib/gitlab/asciidoc')
-rw-r--r--lib/gitlab/asciidoc/html5_converter.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/gitlab/asciidoc/html5_converter.rb b/lib/gitlab/asciidoc/html5_converter.rb
index 2c5c74e4789..f25eeed5169 100644
--- a/lib/gitlab/asciidoc/html5_converter.rb
+++ b/lib/gitlab/asciidoc/html5_converter.rb
@@ -5,18 +5,17 @@ require 'asciidoctor/converter/html5'
module Gitlab
module Asciidoc
- class Html5Converter < Asciidoctor::Converter::Html5Converter
- extend Asciidoctor::Converter::Config
+ class Html5Converter < (Asciidoctor::Converter.for 'html5')
register_for 'gitlab_html5'
- def stem(node)
+ 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
- def inline_quoted(node)
+ def convert_inline_quoted(node)
return super unless node.type.to_sym == :latexmath
%(<code#{id_attribute(node)} data-math-style="inline">#{node.text}</code>)