summaryrefslogtreecommitdiff
path: root/public/css
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-14 17:35:35 +0800
committerWu Cheng-Han2016-10-14 17:35:35 +0800
commit211d25253ec6f5a067affae77308007224b5f33d (patch)
treeccd451028520af129935af16b5a3ef9feb28e4c9 /public/css
parentf93e8f5fdcec43b2a56146a436b50b4a8c8480da (diff)
Update to support wrap syntax for code block
Diffstat (limited to 'public/css')
-rw-r--r--public/css/markdown.css8
1 files changed, 8 insertions, 0 deletions
diff --git a/public/css/markdown.css b/public/css/markdown.css
index 8cb59666..c66ab20d 100644
--- a/public/css/markdown.css
+++ b/public/css/markdown.css
@@ -121,3 +121,11 @@
max-width: 100%;
height: 100%;
}
+
+.markdown-body pre > code.wrap {
+ white-space: pre-wrap; /* Since CSS 2.1 */
+ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
+ white-space: -pre-wrap; /* Opera 4-6 */
+ white-space: -o-pre-wrap; /* Opera 7 */
+ word-wrap: break-word; /* Internet Explorer 5.5+ */
+} \ No newline at end of file