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 */ /* Make details boxes look like on GitHub */
.markdown-body summary {
display: list-item;
}
.markdown-body summary:focus {
outline: none;
}
.markdown-body details summary { .markdown-body details summary {
cursor: pointer; cursor: pointer;
} }
.markdown-body summary { .markdown-body details:not([open]) > *:not(summary) {
display: list-item; display: none;
}
.markdown-body figure {
margin: 1em 40px;
} }

View file

@ -19,12 +19,12 @@ whiteList['style'] = []
whiteList['kbd'] = [] whiteList['kbd'] = []
// allow ifram tag with some safe attributes // allow ifram tag with some safe attributes
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'width', 'height'] whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'width', 'height']
// allow details tag // allow summary tag
whiteList['details'] = []
// allow summary tag for details
whiteList['summary'] = [] whiteList['summary'] = []
// allow ruby tag // allow ruby tag
whiteList['ruby'] = [] whiteList['ruby'] = []
// allow rp tag for ruby
whiteList['rp'] = []
// allow rt tag for ruby // allow rt tag for ruby
whiteList['rt'] = [] whiteList['rt'] = []
// allow figure tag // allow figure tag