diff --git a/css/html_readable_style.css b/css/html_readable_style.css index 2cfa6f2b..cb260f1a 100644 --- a/css/html_readable_style.css +++ b/css/html_readable_style.css @@ -1,4 +1,4 @@ -.container { +.readable-container { max-width: 600px; margin-left: auto; margin-right: auto; @@ -9,25 +9,25 @@ color: #efefef !important; } -.container p, .container li { +.readable-container p, .readable-container li { font-size: 16px !important; color: #efefef !important; margin-bottom: 22px; line-height: 1.4 !important; } -.container li > p { +.readable-container li > p { display: inline !important; } -.container code { +.readable-container code { overflow-x: auto; } -.container :not(pre) > code { +.readable-container :not(pre) > code { white-space: normal !important; } -.container .hoverable { +.readable-container .hoverable { font-size: 14px; } \ No newline at end of file diff --git a/modules/html_generator.py b/modules/html_generator.py index d3e122fd..26e47848 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -100,7 +100,7 @@ def convert_to_markdown(string): def generate_basic_html(string): string = convert_to_markdown(string) - string = f'
{string}
' + string = f'
{string}
' return string