Merge pull request #165 from h-enk/doks-tables

Add table support in markdown
This commit is contained in:
Henk Verlinde 2021-03-05 14:36:47 +01:00 committed by GitHub
commit 8c774fd2db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 1 deletions

View File

@ -19,6 +19,7 @@
@import "components/forms";
@import "components/images";
@import "components/search";
@import "components/tables";
@import "layouts/footer";
@import "layouts/header";
@import "layouts/pages";

View File

@ -291,3 +291,7 @@ body.dark .alert-primary {
body.dark .figure-caption {
color: $body-color-dark;
}
body.dark table {
@extend .table-dark;
}

View File

@ -0,0 +1,5 @@
table {
@extend .table;
margin: 3rem 0;
}

View File

@ -45,6 +45,12 @@ rel = "sitemap"
[markup.goldmark]
[markup.goldmark.extensions]
linkify = false
[markup.goldmark.parser]
autoHeadingID = true
autoHeadingIDType = "github"
[markup.goldmark.parser.attribute]
block = true
title = true
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]

View File

@ -8,10 +8,16 @@ module.exports = {
purgecss({
content: [
'./layouts/**/*.html',
'./content/**/*.md',
'./content/**/*.md',
],
safelist: [
'lazyloaded',
'table',
'thead',
'tbody',
'tr',
'th',
'td',
...whitelister([
'./assets/scss/components/_code.scss',
'./assets/scss/components/_search.scss',