feat: add table support in markdown
This commit is contained in:
parent
6a2d1ec4e7
commit
5ee11a80e2
|
@ -19,6 +19,7 @@
|
||||||
@import "components/forms";
|
@import "components/forms";
|
||||||
@import "components/images";
|
@import "components/images";
|
||||||
@import "components/search";
|
@import "components/search";
|
||||||
|
@import "components/tables";
|
||||||
@import "layouts/footer";
|
@import "layouts/footer";
|
||||||
@import "layouts/header";
|
@import "layouts/header";
|
||||||
@import "layouts/pages";
|
@import "layouts/pages";
|
||||||
|
|
|
@ -291,3 +291,7 @@ body.dark .alert-primary {
|
||||||
body.dark .figure-caption {
|
body.dark .figure-caption {
|
||||||
color: $body-color-dark;
|
color: $body-color-dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.dark table {
|
||||||
|
@extend .table-dark;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
table {
|
||||||
|
@extend .table;
|
||||||
|
|
||||||
|
margin: 3rem 0;
|
||||||
|
}
|
|
@ -45,6 +45,12 @@ rel = "sitemap"
|
||||||
[markup.goldmark]
|
[markup.goldmark]
|
||||||
[markup.goldmark.extensions]
|
[markup.goldmark.extensions]
|
||||||
linkify = false
|
linkify = false
|
||||||
|
[markup.goldmark.parser]
|
||||||
|
autoHeadingID = true
|
||||||
|
autoHeadingIDType = "github"
|
||||||
|
[markup.goldmark.parser.attribute]
|
||||||
|
block = true
|
||||||
|
title = true
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
||||||
[markup.highlight]
|
[markup.highlight]
|
||||||
|
|
|
@ -8,10 +8,16 @@ module.exports = {
|
||||||
purgecss({
|
purgecss({
|
||||||
content: [
|
content: [
|
||||||
'./layouts/**/*.html',
|
'./layouts/**/*.html',
|
||||||
'./content/**/*.md',
|
'./content/**/*.md',
|
||||||
],
|
],
|
||||||
safelist: [
|
safelist: [
|
||||||
'lazyloaded',
|
'lazyloaded',
|
||||||
|
'table',
|
||||||
|
'thead',
|
||||||
|
'tbody',
|
||||||
|
'tr',
|
||||||
|
'th',
|
||||||
|
'td',
|
||||||
...whitelister([
|
...whitelister([
|
||||||
'./assets/scss/components/_code.scss',
|
'./assets/scss/components/_code.scss',
|
||||||
'./assets/scss/components/_search.scss',
|
'./assets/scss/components/_search.scss',
|
||||||
|
|
Loading…
Reference in New Issue