From bc6ae598b64c0054d8f9f8a86c69c879d356fa8d Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Thu, 6 Jul 2023 19:18:18 -0700 Subject: [PATCH] fix styling for bullet points --- quartz/processors/parse.ts | 3 +++ quartz/styles/base.scss | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/quartz/processors/parse.ts b/quartz/processors/parse.ts index 6560bf6c..170e9649 100644 --- a/quartz/processors/parse.ts +++ b/quartz/processors/parse.ts @@ -80,6 +80,9 @@ export function createFileParser(transformers: QuartzTransformerPluginInstance[] try { const file = await read(fp) + // strip leading and trailing whitespace + file.value = file.value.toString().trim() + // Text -> Text transforms for (const plugin of transformers.filter(p => p.textTransform)) { file.value = plugin.textTransform!(file.value) diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 94c85c73..4eb67423 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -71,9 +71,10 @@ a { font-size: 2rem; } - & ul:has(input[type='checkbox']) { + & li:has(> input[type='checkbox']) { list-style-type: none; padding-left: 0; + margin-left: -1.4rem; } }