From 6643a6d194f12e6766336be9fd44e13e7c3a5834 Mon Sep 17 00:00:00 2001 From: Kerby Martino Date: Mon, 5 May 2025 21:14:20 +0800 Subject: [PATCH] feat: add kramdown-parser-gfm and configure markdown --- Gemfile | 2 ++ Gemfile.lock | 1 + _config.yml | 8 ++++++++ _includes/head.liquid | 4 +--- _layouts/content.liquid | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 8cfcc36..21aad95 100644 --- a/Gemfile +++ b/Gemfile @@ -45,3 +45,5 @@ gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] gem "csv" gem "base64" gem "bigdecimal" +gem 'kramdown-parser-gfm' + diff --git a/Gemfile.lock b/Gemfile.lock index 3813e21..da92b2b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -112,6 +112,7 @@ DEPENDENCIES jekyll-sass-converter (~> 3.0.0) jekyll-seo-tag (~> 2.8.0) jekyll-watch (~> 2.2.1) + kramdown-parser-gfm minima (~> 2.5) octopress-paginate tzinfo (>= 1, < 3) diff --git a/_config.yml b/_config.yml index 082de4a..1d95365 100644 --- a/_config.yml +++ b/_config.yml @@ -42,6 +42,14 @@ exclude: markdown_ext: md,markdown,liquid textile_ext: textile,liquid +markdown: kramdown +kramdown: + input: GFM + hard_wrap: false + auto_ids: true + toc_levels: 1..6 + smart_quotes: lsquo,rsquo,ldquo,rdquo + pagination: limit: false per_page: 2 diff --git a/_includes/head.liquid b/_includes/head.liquid index b5283d4..d83812d 100644 --- a/_includes/head.liquid +++ b/_includes/head.liquid @@ -3,7 +3,7 @@ {{ page.title }} - + - diff --git a/_layouts/content.liquid b/_layouts/content.liquid index 1fa0488..222b4bf 100644 --- a/_layouts/content.liquid +++ b/_layouts/content.liquid @@ -6,7 +6,7 @@ {% include simple_navbar.liquid %}
-
+
{{ content | markdownify }}