diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2017-08-07 19:51:59 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2018-10-31 17:50:22 +0300 |
commit | c76c418e865ed93fcd9fd45105d8b87c3d76f5ce (patch) | |
tree | 81315067388fe620a02fee502c9c5dcc28301371 /Rules | |
parent | 3fb1fc62dc4d461c041d9554c56e816a0c54caeb (diff) |
add kramdown as markdown engine
Diffstat (limited to 'Rules')
-rw-r--r-- | Rules | 31 |
1 files changed, 12 insertions, 19 deletions
@@ -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 |