Skip to content

Commit e20929e

Browse files
committed
migrate from redcarpet to kramdown
This will stop github pages complaining on all page builds, as github are deprecated all but kramdown for their markdown engines.
1 parent 4893fac commit e20929e

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

_config.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ description: |
55
baseurl: "/chai-docs"
66

77
safe: true
8-
markdown: redcarpet
9-
redcarpet:
10-
extensions:
11-
- no_intra_emphasis
12-
- tables
13-
- autolink
14-
- strikethrough
15-
- with_toc_data
8+
markdown: kramdown
9+
kramdown:
10+
input: GFM
11+
syntax_highlighter: rouge
12+
syntax_highlighter_opts:
13+
default_lang: js
14+
1615
exclude:
1716
- node_modules
1817
- package.json

_sass/_main.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,3 +1743,11 @@ body.tests #mocha .test.fail h2:before {
17431743
padding-right: 6px;
17441744
color: #f00;
17451745
}
1746+
1747+
.highlight {
1748+
margin: 0;
1749+
}
1750+
1751+
.highlighter-rouge {
1752+
margin-bottom: 1.5em;
1753+
}

0 commit comments

Comments
 (0)