From c2ef8589e3b010dcf27adb31dea3ffe72d7a3f6d Mon Sep 17 00:00:00 2001 From: raju249 Date: Mon, 17 Jun 2019 11:29:45 +0530 Subject: Upgrade asciidoctor version to 2.0.10 and change menthod names in html5_converter --- Gemfile | 4 ++-- lib/gitlab/asciidoc/html5_converter.rb | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index a5dccd2ef24..e59ec4e85a3 100644 --- a/Gemfile +++ b/Gemfile @@ -129,9 +129,9 @@ gem 'rdoc', '~> 6.0' gem 'org-ruby', '~> 0.9.12' gem 'creole', '~> 0.5.0' gem 'wikicloth', '0.8.1' -gem 'asciidoctor', '~> 1.5.8' +gem 'asciidoctor', '~> 2.0.10' gem 'asciidoctor-include-ext', '~> 0.3.1', require: false -gem 'asciidoctor-plantuml', '0.0.8' +gem 'asciidoctor-plantuml', '0.0.9' gem 'rouge', '~> 3.1' gem 'truncato', '~> 0.7.11' gem 'bootstrap_form', '~> 4.2.0' 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 %(#{node.content}) end - def inline_quoted(node) + def convert_inline_quoted(node) return super unless node.type.to_sym == :latexmath %(#{node.text}) -- cgit v1.2.1