diff options
author | Guillaume Grossetie <ggrossetie@gmail.com> | 2019-06-19 09:37:48 +0300 |
---|---|---|
committer | Guillaume Grossetie <ggrossetie@gmail.com> | 2019-07-02 10:24:05 +0300 |
commit | 5854537f117042d6a26b75d00284b9b37b6b8130 (patch) | |
tree | 7af3308e702968dc5d1ab6797380299b22fd05be /lib/gitlab/asciidoc.rb | |
parent | 02ad0c2f6aedfe5053a79b027cc2882115c1cad5 (diff) |
Enable AsciiDoc syntax highlighting (using Rouge)
Diffstat (limited to 'lib/gitlab/asciidoc.rb')
-rw-r--r-- | lib/gitlab/asciidoc.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/asciidoc.rb b/lib/gitlab/asciidoc.rb index 7f8300a0c2f..00c87cce7b6 100644 --- a/lib/gitlab/asciidoc.rb +++ b/lib/gitlab/asciidoc.rb @@ -4,6 +4,7 @@ require 'asciidoctor' require 'asciidoctor-plantuml' require 'asciidoctor/extensions' require 'gitlab/asciidoc/html5_converter' +require 'gitlab/asciidoc/syntax_highlighter/html_pipeline_adapter' module Gitlab # Parser/renderer for the AsciiDoc format that uses Asciidoctor and filters @@ -16,7 +17,7 @@ module Gitlab 'idseparator' => '-', 'env' => 'gitlab', 'env-gitlab' => '', - 'source-highlighter' => 'html-pipeline', + 'source-highlighter' => 'gitlab-html-pipeline', 'icons' => 'font', 'outfilesuffix' => '.adoc', 'max-include-depth' => MAX_INCLUDE_DEPTH |