gemtext: support metadata on opening fences

This commit is contained in:
dece 2021-02-15 18:51:07 +01:00
parent a771667a54
commit 4d1cc5650f

View file

@ -57,7 +57,7 @@ def parse_gemtext(data):
elements.append(Link(url, text)) elements.append(Link(url, text))
continue continue
if line == Preformatted.FENCE: if line.startswith(Preformatted.FENCE):
if preformatted: if preformatted:
elements.append(preformatted) elements.append(preformatted)
preformatted = None preformatted = None