Skip to content

Commit 0600178

Browse files
committed
better code highlighting
1 parent 7d1fa6b commit 0600178

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

dark.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

httpmdhtml/md_to_html.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def markdown_to_html(
3636
else:
3737
with open(css_file, "r") as f:
3838
css = f.read()
39-
else: # #272822
39+
else:
4040
css = """
4141
body { background-color: #272822; color: #e6edf3; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; position: relative; max-width: 960px; margin: auto; line-height: 1.5; }
4242
a[href] { color: #66d9ef; }
43-
code { color: #e6edf3; font-family: monospace; white-space: break-spaces; }
44-
p code { padding: .2em .4em; border-radius: 6px; background-color: #343941; }
43+
code { color: #e6edf3; background-color: #343941; font-family: monospace; white-space: break-spaces; padding: .2em .4em; border-radius: 6px; }
4544
pre { padding: 1em; border-radius: 6px; background-color: #161b22; }
45+
pre code { background-color: #161b22; }
4646
table, th, td { border: 1px solid; border-collapse: collapse; padding-left: 4px; padding-right: 4px; }
4747
img { max-width: 100%; }
4848
"""

0 commit comments

Comments
 (0)