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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2020-08-04 08:49:42 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-08-31 19:42:58 +0300
commit797366ba855ff477f5b7dd574b2a58b2c94ecfb3 (patch)
treee6d52b158a4ebae13aa7e2a2dfb275311c37de57 /Rules
parentd0e9c2abb20ba267329124a37d19af2664f6c52d (diff)
Update gitlab_kramdown
Diffstat (limited to 'Rules')
-rw-r--r--Rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rules b/Rules
index cb8216f0..867a7cca 100644
--- a/Rules
+++ b/Rules
@@ -68,6 +68,14 @@ compile '/**/*.md' do
filter :gitlab_kramdown,
input: 'GitlabKramdown',
syntax_highlighter: 'rouge',
+ syntax_highlighter_opts: {
+ # In kramdown 2.0, the plaintext parser was removed and replaced by the
+ # :guess_lang option:
+ #
+ # - https://github.com/gettalong/kramdown/blob/master/doc/news/release_2_0_0.page
+ # - https://github.com/gettalong/kramdown/pull/573
+ guess_lang: true
+ },
default_lang: 'Plain Text',
hard_wrap: false,
auto_ids: true,