~sotirisp/qute-gemini

51390e420b3b0166be69dc618d82f9fe9c3af674 — Sotiris Papatheodorou 8 months ago a24ab0f
Put the content in article HTML tags
1 files changed, 3 insertions(+), 1 deletions(-)

M qute-gemini
M qute-gemini => qute-gemini +3 -1
@@ 183,7 183,8 @@ def gemtext_to_html(gemtext: str, title: str, url: str) -> str:
            get_css(),
            "\t\t</style>",
            "\t</head>",
            "\t<body>"]
            "\t<body>",
            "\t<article>"]
    in_pre = False
    in_list = False
    # Add an extra newline to ensure list tags are closed properly


@@ 238,6 239,7 @@ def gemtext_to_html(gemtext: str, title: str, url: str) -> str:
            lines.append("\t\t<p>" + html.escape(line.strip()) + "</p>")
    lines.append("")
    original_url_html = '<a href="' + url + '">' + html.escape(url) + "</a>"
    lines.append("\t</article>")
    lines.append("\t<details>")
    lines.append("\t\t<summary>")
    lines.append("\t\t\tContent from " + original_url_html)