mirror of https://gitlab.com/bashrc2/epicyon
Formatting within code sections
parent
f707a4f4e1
commit
7d4addfac8
|
@ -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%;
|
||||
}
|
||||
|
|
|
@ -335,7 +335,10 @@ def markdown_to_html(markdown: str) -> str:
|
|||
}
|
||||
for line in lines_list:
|
||||
if ctr > 0:
|
||||
html_str += '<br>\n'
|
||||
if not code_section:
|
||||
html_str += '<br>\n'
|
||||
else:
|
||||
html_str += '\n'
|
||||
|
||||
# avoid code sections
|
||||
if not code_section:
|
||||
|
|
Loading…
Reference in New Issue