From a257465b8de3267b3629b3da083c264c9ffcfc41 Mon Sep 17 00:00:00 2001 From: Tuure Date: Tue, 2 Jan 2024 20:13:14 +0200 Subject: [PATCH 1/3] fix(#56): table style --- static/style.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/static/style.css b/static/style.css index 99b6f1be..c0806efc 100644 --- a/static/style.css +++ b/static/style.css @@ -75,6 +75,24 @@ blockquote { margin-left: 0 } +/* -------------------------------------------------------------------------- + * TABLES ------------------------------------------------------------------- */ +table { + border-spacing: 0; + border-collapse: collapse; + margin-top: 0; + margin-bottom: 16px; +} + +th, td { + padding: 6px 13px; + border: 1px solid #444; +} + +tr:nth-child(even) { + background-color: #161616; +} + /* -------------------------------------------------------------------------- * LISTS -------------------------------------------------------------------- */ li.task-list-item { list-style: none; } @@ -128,4 +146,12 @@ img, svg { max-width: 100%; } color: #656d76; border-left: .25em solid #d0d7de; } + + th, td { + border: 1px solid #d8dee4; + } + + tr:nth-child(even) { + background-color: #f6f8fa; + } } From e8201c49407aaef6ccb00fa2258298a354f1d0cc Mon Sep 17 00:00:00 2001 From: Tuure Date: Wed, 3 Jan 2024 07:03:42 +0200 Subject: [PATCH 2/3] fix(#57): horizontal rule style --- static/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/static/style.css b/static/style.css index c0806efc..d9be442e 100644 --- a/static/style.css +++ b/static/style.css @@ -114,6 +114,15 @@ li.dir-list-file:before { content: '📄' } * IMAGES ------------------------------------------------------------------- */ img, svg { max-width: 100%; } +/* -------------------------------------------------------------------------- + * HORIZONTAL RULE ---------------------------------------------------------- */ +hr { + height: .25em; + margin: 24px 0; + background-color: #353535; + border: 0; +} + /* -------------------------------------------------------------------------- * LIGHT MODE --------------------------------------------------------------- */ @media (prefers-color-scheme: light) { @@ -154,4 +163,8 @@ img, svg { max-width: 100%; } tr:nth-child(even) { background-color: #f6f8fa; } + + hr { + background-color: #d0d7de; + } } From 6ea694514fb7be74933b35bb0ce422a8198d91c6 Mon Sep 17 00:00:00 2001 From: Jannis Baum Date: Wed, 3 Jan 2024 08:51:18 +0100 Subject: [PATCH 3/3] feat(#57): auto linkify --- src/parser/parser.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/parser.ts b/src/parser/parser.ts index 4f100dbc..a51aebc8 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -9,6 +9,7 @@ import config from './config'; const mdit = new MarkdownIt({ html: true, highlight: highlight, + linkify: true, }); mdit.use(anchor, {