diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-08-04 08:49:42 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-08-31 19:42:58 +0300 |
commit | 797366ba855ff477f5b7dd574b2a58b2c94ecfb3 (patch) | |
tree | e6d52b158a4ebae13aa7e2a2dfb275311c37de57 /Rules | |
parent | d0e9c2abb20ba267329124a37d19af2664f6c52d (diff) |
Update gitlab_kramdown
Diffstat (limited to 'Rules')
-rw-r--r-- | Rules | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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, |