Merge pull request #744 from hackmdio/add-more-html5-tags

Support more html5 tags and styles
This commit is contained in:
Christoph (Sheogorath) Kern 2018-02-26 19:41:53 +01:00 committed by GitHub
commit b0ce3d0230
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 5 deletions

View file

@ -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;
}

View file

@ -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