@@ 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)