Skip to content

Commit

Permalink
better code highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
treatmesubj committed Jul 21, 2023
1 parent 7d1fa6b commit 0600178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions dark.css

This file was deleted.

6 changes: 3 additions & 3 deletions httpmdhtml/md_to_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def markdown_to_html(
else:
with open(css_file, "r") as f:
css = f.read()
else: # #272822
else:
css = """
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; }
a[href] { color: #66d9ef; }
code { color: #e6edf3; font-family: monospace; white-space: break-spaces; }
p code { padding: .2em .4em; border-radius: 6px; background-color: #343941; }
code { color: #e6edf3; background-color: #343941; font-family: monospace; white-space: break-spaces; padding: .2em .4em; border-radius: 6px; }
pre { padding: 1em; border-radius: 6px; background-color: #161b22; }
pre code { background-color: #161b22; }
table, th, td { border: 1px solid; border-collapse: collapse; padding-left: 4px; padding-right: 4px; }
img { max-width: 100%; }
"""
Expand Down

0 comments on commit 0600178

Please sign in to comment.