Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions public/css/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,22 @@
}

/* Make details boxes look like on GitHub */
.markdown-body summary {
display: list-item;
}

.markdown-body summary:focus {
outline: none;
}

.markdown-body details summary {
cursor: pointer;
}

.markdown-body summary {
display: list-item;
.markdown-body details:not([open]) > *:not(summary) {
display: none;
}

.markdown-body figure {
margin: 1em 40px;
}
6 changes: 3 additions & 3 deletions public/js/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ whiteList['style'] = []
whiteList['kbd'] = []
// allow ifram tag with some safe attributes
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'width', 'height']
// allow details tag
whiteList['details'] = []
// allow summary tag for details
// allow summary tag
whiteList['summary'] = []
// allow ruby tag
whiteList['ruby'] = []
// allow rp tag for ruby
whiteList['rp'] = []
// allow rt tag for ruby
whiteList['rt'] = []
// allow figure tag
Expand Down