aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfilters/html-converters/md2html6
-rwxr-xr-xfilters/syntax-highlighting.sh2
2 files changed, 5 insertions, 3 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html
index 59f43a8..64ed75a 100755
--- a/filters/html-converters/md2html
+++ b/filters/html-converters/md2html
@@ -39,6 +39,8 @@ sys.stdout.write('''
-webkit-font-smoothing: antialiased;
cursor: text;
position: relative;
+ color: #fff;
+ border-color: #333;
}
.markdown-body h1 .mini-icon-link, .markdown-body h2 .mini-icon-link, .markdown-body h3 .mini-icon-link, .markdown-body h4 .mini-icon-link, .markdown-body h5 .mini-icon-link, .markdown-body h6 .mini-icon-link {
display: none;
@@ -55,7 +57,7 @@ sys.stdout.write('''
display: inline-block;
}
div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div#cgit .markdown-body h3 a.toclink, div#cgit .markdown-body h4 a.toclink, div#cgit .markdown-body h5 a.toclink, div#cgit .markdown-body h6 a.toclink {
- color: black;
+ color: white;
}
.markdown-body h1 tt, .markdown-body h1 code, .markdown-body h2 tt, .markdown-body h2 code, .markdown-body h3 tt, .markdown-body h3 code, .markdown-body h4 tt, .markdown-body h4 code, .markdown-body h5 tt, .markdown-body h5 code, .markdown-body h6 tt, .markdown-body h6 code {
font-size: inherit;
@@ -284,7 +286,7 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div#
border: none;
}
''')
-sys.stdout.write(HtmlFormatter(style='pastie').get_style_defs('.highlight'))
+sys.stdout.write(HtmlFormatter(style='monokai').get_style_defs('.highlight'))
sys.stdout.write('''
</style>
''')
diff --git a/filters/syntax-highlighting.sh b/filters/syntax-highlighting.sh
index 3de95fa..f19be13 100755
--- a/filters/syntax-highlighting.sh
+++ b/filters/syntax-highlighting.sh
@@ -118,4 +118,4 @@ EXTENSION="${BASENAME##*.}"
#exec highlight --force -f -I -X -S "$EXTENSION" 2>/dev/null
# This is for version 3
-exec highlight --force --inline-css -f -I -O xhtml -S "$EXTENSION" 2>/dev/null
+exec highlight --force --style=darkplus --inline-css -f -I -O xhtml -S "$EXTENSION" 2>/dev/null