Skip to content

Commit

Permalink
Improve rendering style of markdown in the mdbook (#26616)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Nov 21, 2023
1 parent 8025711 commit b9b7321
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ create-missing = false
# Remove the numbers that appear before each item in the sidebar, as they can
# get quite messy as we nest deeper
no-section-label = true
additional-css = ["docs/css/custom.css"]

# The source code URL of the repository
git-repository-url = "https://github.com/vector-im/element-web"
Expand Down
14 changes: 14 additions & 0 deletions docs/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Prevent collapsible headings from wrapping onto two lines eagerly */
summary > h1,
summary > h2,
summary > h3,
summary > h4,
summary > h5,
summary > h6 {
display: inline-block;
}

/* Prevent longer checkbox lists from wrapping eagerly */
input + p {
display: inline;
}

0 comments on commit b9b7321

Please sign in to comment.