Browse Source

fix: hide keyline when footnotes are preceded by header (#4529)

Hide key-line created by `markdown-it-footnote` template when footnotes are directly preceded by header.

Examples:
```md
# References
[^1]: Shows no key-line because References header has one already

# New Page
Text goes here and whatever else

[^1]: these footnotes have no preceding header and will show a key-line
```
pull/4546/head
broxen 3 years ago
committed by GitHub
parent
commit
3e795777ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. 4
      client/themes/default/scss/app.scss

4
client/themes/default/scss/app.scss

@ -77,6 +77,10 @@
& + h2, & + h3, & + h4, & + h5, & + h6 { & + h2, & + h3, & + h4, & + h5, & + h6 {
margin-top: 8px; margin-top: 8px;
} }
& + hr.footnotes-sep {
display: none;
}
} }
h1 { h1 {

Loading…
Cancel
Save