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:
authorMarcia Ramos <virtua.creative@gmail.com>2017-08-07 19:51:59 +0300
committerGabriel Mazetto <brodock@gmail.com>2018-10-31 17:50:22 +0300
commitc76c418e865ed93fcd9fd45105d8b87c3d76f5ce (patch)
tree81315067388fe620a02fee502c9c5dcc28301371 /Rules
parent3fb1fc62dc4d461c041d9554c56e816a0c54caeb (diff)
add kramdown as markdown engine
Diffstat (limited to 'Rules')
-rw-r--r--Rules31
1 files changed, 12 insertions, 19 deletions
diff --git a/Rules b/Rules
index 3f247bad..d64c9d89 100644
--- a/Rules
+++ b/Rules
@@ -53,7 +53,7 @@ compile '/**/*.html' do
end
compile '/**/*.md' do
- if item[:redirect_to].nil?
+ if item[:redirect].nil?
# If 'toc' is absent in a file's yaml frontmatter, show ToC.
# Set to 'toc: false' to disable it.
@@ -62,24 +62,17 @@ compile '/**/*.md' do
# GitLab price / tiers specific badges
filter :badges
- # Use Redcarpet with Rouge.
- filter :redcarpet,
- renderer: HTML,
- options: {
- fenced_code_blocks: true,
- footnotes: true,
- lax_spacing: true,
- no_intra_emphasis: true,
- space_after_headers: true,
- strikethrough: true,
- superscript: true,
- tables: true,
- autolink: true,
- },
- renderer_options: {
- with_toc_data: true
- },
- with_toc: include_toc
+ # Use Kramdown with Rouge.
+ # https://kramdown.gettalong.org/options.html
+ filter :kramdown,
+ input: 'GFM',
+ syntax_highlighter: 'rouge',
+ hard_wrap: false,
+ auto_ids: true,
+ toc_levels: 2..5
+
+ filter :colorize_syntax,
+ default_colorizer: :rouge
filter :md_to_html_ext
filter :admonition