Commit b1c0c660 authored by Guillaume Grossetie's avatar Guillaume Grossetie

Use SUPPORTED_DIAGRAM_NAMES from asciidoctor-kroki gem

parent 7f409d54
# frozen_string_literal: true
require 'rouge/plugins/common_mark'
require "asciidoctor/extensions/asciidoctor_kroki/extension"
# Generated HTML is transformed back to GFM by app/assets/javascripts/behaviors/markdown/nodes/code_block.js
module Banzai
......@@ -86,7 +87,7 @@ module Banzai
end
def use_rouge?(language)
(%w(math suggestion) + ::Gitlab::Kroki::DIAGRAM_TYPES).exclude?(language)
(%w(math suggestion) + ::AsciidoctorExtensions::Kroki::SUPPORTED_DIAGRAM_NAMES).exclude?(language)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment