Skip to content

Commit 2ff847b

Browse files
authored
Merge pull request #12729 from quarto-dev/bugfix/10983
Fix inconsistent spacing between paragraph and first-section heading
2 parents ad0a7da + 71551a6 commit 2ff847b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

news/changelog-1.8.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All changes included in 1.8:
1010

1111
### `html`
1212

13+
- ([#10983](https://github.com/quarto-dev/quarto-cli/issues/10983)): Fix spacing inconsistency between paras and first section headings.
1314
- ([#12259](https://github.com/quarto-dev/quarto-cli/issues/12259)): Fix conflict between `html-math-method: katex` and crossref popups (author: @benkeks).
1415

1516
### `revealjs`

src/resources/formats/html/bootstrap/_bootstrap-rules.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,11 @@ h1.title {
631631
margin-top: 0;
632632
}
633633

634-
main.content > section:first-of-type > h2:first-child {
634+
main.content > p:has(+ section) {
635+
margin-bottom: 2rem;
636+
}
637+
638+
main.content > section:first-of-type > h2:nth-child(1) {
635639
margin-top: 0;
636640
}
637641

0 commit comments

Comments
 (0)