From b3480bdc49120010da8d2805df02cbf84ca08bdc 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 6560bf6..170e964 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 94c85c7..4eb6742 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; } }