diff --git a/src/hooks/useMarkdown.hook.ts b/src/hooks/useMarkdown.hook.ts index 3164b96..dba0716 100644 --- a/src/hooks/useMarkdown.hook.ts +++ b/src/hooks/useMarkdown.hook.ts @@ -86,7 +86,7 @@ const md = new MarkdownIt({ const isChecked = data.isActive || (!currentTabActiveSet && data.index === 0) const checked = isChecked ? " checked" : "" const title = data.title.replace(/"/g, """) - return `\n
\n` + return `\n
\n` }, tabCloseRender: () => "
\n" }) diff --git a/src/styles/app.css b/src/styles/app.css index 5bac5ae..36d5c71 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -233,3 +233,8 @@ iframe { .todo-notes li:has(> input[type="checkbox"]) { list-style: none; } + +:where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) { + margin-top: 0; + margin-bottom: 0; +}