diff options
author | Sheogorath | 2018-02-25 14:48:50 +0100 |
---|---|---|
committer | Sheogorath | 2018-02-25 14:54:21 +0100 |
commit | 5d347d583d16d38333c84cfba4219826e45dfd0b (patch) | |
tree | b3b475ab5405353ad4d91e8729471119c6d5650c /public/css | |
parent | f642a1159900b332d3e88efd538cec22e3c8615a (diff) |
Extend HTML5 support by whitelisting various tags
HTML5 provides a wide feature set of useful elements. Since Markdown
usually supports HTML it should be able to use these HTML5 tags as well.
As they were requested by some users and they where checked for being
safe, whitelisting them isn't a problem. To make the experience the same
as on GitHub when it comes to the basic look and feel of the rendered
markdown, some CSS was added to make the summary and the details tag
look like on GitHub.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'public/css')
-rw-r--r-- | public/css/markdown.css | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/css/markdown.css b/public/css/markdown.css index 6741729d..36e45781 100644 --- a/public/css/markdown.css +++ b/public/css/markdown.css @@ -188,3 +188,12 @@ .markdown-body .alert > ul { margin-bottom: 0; } + +/* Make details boxes look like on GitHub */ +.markdown-body details summary { + cursor: pointer; +} + +.markdown-body summary { + display: list-item; +} |