diff options
Diffstat (limited to 'filters')
| -rwxr-xr-x | filters/html-converters/md2html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 59f43a8..fd0c09d 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -55,7 +55,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: #eee; } .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; @@ -66,7 +66,7 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# } .markdown-body h2 { font-size: 24px; - border-bottom: 1px solid #ccc; + border-bottom: 1px solid #666; color: #000; } .markdown-body h3 { @@ -254,8 +254,8 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# .markdown-body code, .markdown-body tt { margin: 0 2px; padding: 0px 5px; - border: 1px solid #eaeaea; - background-color: #f8f8f8; + border: 1px solid #666; + background-color: #111; border-radius: 3px; } .markdown-body code { @@ -269,8 +269,8 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# background: transparent; } .markdown-body .highlight pre, .markdown-body pre { - background-color: #f8f8f8; - border: 1px solid #ccc; + background-color: #222; + border: 1px solid #666; font-size: 13px; line-height: 19px; overflow: auto; @@ -283,8 +283,10 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# background-color: transparent; border: none; } +.highlight { +} ''') -sys.stdout.write(HtmlFormatter(style='pastie').get_style_defs('.highlight')) +sys.stdout.write(HtmlFormatter(style='one-dark',nobackground=True).get_style_defs('.highlight')) sys.stdout.write(''' </style> ''') |