Major completion provider overhaul; pluigin load and pattern improvements; css overhaul/cleanup; source view state modes added

This commit is contained in:
2026-02-14 21:36:06 -06:00
parent 5df23abb10
commit 80a4620724
157 changed files with 3121 additions and 650 deletions

View File

@@ -0,0 +1,42 @@
# Python imports
# Lib imports
# Application imports
class MarkdownTemplateMixin:
def wrap_html_to_body(self, html):
return f"""\
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Markdown View</title>
<style media="screen">
html, body {{
display: block;
background-color: #32383e00;
color: #ffffff;
text-wrap: wrap;
}}
img {{
width: 100%;
height: auto;
}}
code {{
border: 1px solid #32383e;
background-color: #32383e;
padding: 4px;
}}
</style>
</head>
<body>
{html}
</body>
</html>
"""