Skip to content

Commit

Permalink
fix: hide keyline when footnotes are preceded by header (#4529)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
broxen committed Oct 2, 2021
1 parent db73b65 commit 3e79577
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/themes/default/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
& + h2, & + h3, & + h4, & + h5, & + h6 {
margin-top: 8px;
}

& + hr.footnotes-sep {
display: none;
}
}

h1 {
Expand Down

0 comments on commit 3e79577

Please sign in to comment.