Skip to content

Commit 1564f49

Browse files
committed
replace kramdown (jekyll default markdown parser) with jekyll-commonmark
1 parent b719520 commit 1564f49

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ gem 'classifier-reborn'
1717

1818
group :jekyll_plugins do
1919
gem 'jekyll-admin'
20+
gem 'jekyll-commonmark'
2021
gem 'jekyll-compose'
2122
gem 'jekyll-paginate'
2223
gem 'jekyll-redirect-from'

Gemfile.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ GEM
77
classifier-reborn (2.2.0)
88
fast-stemmer (~> 1.0)
99
colorator (1.1.0)
10+
commonmarker (0.21.0)
11+
ruby-enum (~> 0.5)
1012
concurrent-ruby (1.1.6)
1113
em-websocket (0.5.1)
1214
eventmachine (>= 0.12.9)
@@ -40,6 +42,9 @@ GEM
4042
jekyll (>= 3.7, < 5.0)
4143
sinatra (~> 1.4)
4244
sinatra-contrib (~> 1.4)
45+
jekyll-commonmark (1.3.1)
46+
commonmarker (~> 0.14)
47+
jekyll (>= 3.7, < 5.0)
4348
jekyll-compose (0.12.0)
4449
jekyll (>= 3.7, < 5.0)
4550
jekyll-deploy (0.0.2)
@@ -96,6 +101,8 @@ GEM
96101
ffi (~> 1.0)
97102
rexml (3.2.4)
98103
rouge (3.21.0)
104+
ruby-enum (0.8.0)
105+
i18n
99106
safe_yaml (1.0.5)
100107
sassc (2.4.0)
101108
ffi (~> 1.9)
@@ -126,6 +133,7 @@ DEPENDENCIES
126133
gsl
127134
jekyll (~> 4.1.0)
128135
jekyll-admin
136+
jekyll-commonmark
129137
jekyll-compose
130138
jekyll-deploy
131139
jekyll-feed

_config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ defaults:
7575
class: "post-template"
7676
navigation: True
7777

78-
# Markdown
78+
# Conversion
7979
# https://jekyllrb.com/docs/configuration/markdown/
80-
# https://kramdown.gettalong.org/options.html
80+
# https://github.com/jekyll/jekyll-commonmark#configuration
81+
markdown: CommonMark
8182

82-
kramdown:
83-
input: GFM
84-
smart_quotes: apos,apos,quot,quot
85-
show_warnings: true
83+
commonmark:
84+
options: ["UNSAFE", "FOOTNOTES", "STRIKETHROUGH_DOUBLE_TILDE", "VALIDATE_UTF8", "GITHUB_PRE_LANG", "HARDBREAKS"]
85+
extensions: ["autolink", "strikethrough", "table", "tasklist"]
8686

8787
lsi: false # Index for related posts (enabled by command line)
8888

0 commit comments

Comments
 (0)