1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00

Fix margin above headline in rendered org-mode (#4076)

This Fixes #3962 by adding `!important` to the margin of the heading in the rendered markdown.

In the current behaviour, the margin-top was always overridden by a global css-rule. This is prevented by this change.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4076
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Beowulf <beowulf@beocode.eu>
Co-committed-by: Beowulf <beowulf@beocode.eu>
(cherry picked from commit 187860bded)
This commit is contained in:
Beowulf 2024-06-11 03:34:21 +00:00 committed by GitHub
parent f132e98d12
commit bfa98d56fa
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Fixed: headlines in rendered org-mode do not have a margin on the top

View file

@ -72,7 +72,7 @@
.markup h4,
.markup h5,
.markup h6 {
margin-top: 24px;
margin-top: 24px !important;
margin-bottom: 16px;
font-weight: var(--font-weight-semibold);
line-height: 1.25;