diff --git a/server.py b/server.py index 35711b2..773957e 100644 --- a/server.py +++ b/server.py @@ -66,18 +66,18 @@ def relay(): if i.split(" ")[1] != "text/gemini": return f'\nSomething went wrong...

Something went wrong...

This path returned a file that isn\'t Gemtext, which Gem2Browser doesn\'t support downloading files.

' else: - if i[0:1] == "# ": + if i[0:2] == "# ": if title == "Something went wrong...": title = i[2:] temp = i[2:] code += f"

{temp}

\n" - elif i[0:2] == "## ": + elif i[0:3] == "## ": temp = i[3:] code += f"

{temp}

\n" - elif i[0:3] == "### ": + elif i[0:4] == "### ": temp = i[4:] code += f"

{temp}

\n" - elif i[0:1] == "* ": + elif i[0:2] == "* ": temp = i[2:] code += f"" else: