mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 11:43:59 -05:00
Merge pull request #744 from hackmdio/add-more-html5-tags
Support more html5 tags and styles
This commit is contained in:
commit
b0ce3d0230
2 changed files with 17 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue