--
This commit is contained in:
@@ -104,7 +104,7 @@ async def default_response(request: Request, full_path: str) -> Response:
|
||||
markdown_mode = False
|
||||
if "curl" in request.headers.get("user-agent", "").lower():
|
||||
markdown_mode = True
|
||||
elif full_path.endswith(".md"):
|
||||
if full_path.endswith(".md"):
|
||||
markdown_mode = True
|
||||
full_path = full_path[:-3] + ".html"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user