feat: add kramdown-parser-gfm and configure markdown
This commit is contained in:
1 parent
e8232859d2
commit
6643a6d194
5 files changed
+13
-4
No files matched your search
@@ -45,3 +45,5 @@ gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
|
||||
gem "csv"
|
||||
gem "base64"
|
||||
gem "bigdecimal"
|
||||
gem 'kramdown-parser-gfm'
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{ page.title }}</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;600;700&family=Monda:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
@@ -66,9 +66,7 @@
|
||||
}
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
</script>
|
||||
<link rel="stylesheet" href="/assets/css/tailwind.min.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||
</head>
|
||||
@@ -6,7 +6,7 @@
|
||||
{% include simple_navbar.liquid %}
|
||||
|
||||
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
|
||||
<div class="px-4 mt-4 markdown-renderer">
|
||||
<div class="px-4 mt-4 markdown-renderer prose">
|
||||
{{ content | markdownify }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user