diff options
author | Douwe Maan <douwe@gitlab.com> | 2019-06-18 13:03:13 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-06-18 13:03:13 +0300 |
commit | c167cc58d3efe2bf1d8f9ccb1a58d7819fef1901 (patch) | |
tree | 306264d047406840bd6f0a6561d2c47a9931eda8 /lib | |
parent | 28fe2a67d00938ac504fb1838ed4c42931880c2e (diff) | |
parent | aebee1882d25498bfcb97472c8ace69cc691aeca (diff) |
Merge branch 'asciidoctor-upgrade' into 'master'
Upgrade asciidoctor version to 2.0.10 and change method names in html5_converter
Closes #63304
See merge request gitlab-org/gitlab-ce!29741
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/asciidoc/html5_converter.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/gitlab/asciidoc/html5_converter.rb b/lib/gitlab/asciidoc/html5_converter.rb index 2c5c74e4789..e5163e1954c 100644 --- a/lib/gitlab/asciidoc/html5_converter.rb +++ b/lib/gitlab/asciidoc/html5_converter.rb @@ -1,22 +1,19 @@ # frozen_string_literal: true require 'asciidoctor' -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>) |