diff --git a/epicyon-profile.css b/epicyon-profile.css index daccec120..b3a3ab8a3 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -21,6 +21,7 @@ --header-bg-color: #282c37; --main-bg-color: #282c37; --post-bg-color: #282c37; + --code-color: lightblue; --column-left-color: #282c37; --link-bg-color: #282c37; --dropdown-fg-color: #dddddd; @@ -127,6 +128,7 @@ --quote-font-size-mobile: 120%; --quote-font-size-tiny: 60%; --line-spacing: 180%; + --code-spacing: 100%; --line-spacing-newswire: 120%; --newswire-item-moderated-color: white; --newswire-date-moderated-color: white; @@ -248,6 +250,12 @@ body, html { image-rendering: var(--rendering); } +code { + color: var(--code-color); + white-space: pre; + line-height: var(--code-spacing); +} + audio { width: 100%; } diff --git a/markdown.py b/markdown.py index c4470032e..d8b124bac 100644 --- a/markdown.py +++ b/markdown.py @@ -335,7 +335,10 @@ def markdown_to_html(markdown: str) -> str: } for line in lines_list: if ctr > 0: - html_str += '
\n' + if not code_section: + html_str += '
\n' + else: + html_str += '\n' # avoid code sections if not code_section: