From 66c812709616b006fbbcd343dc3c9048ca39f8ea Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 23 Jan 2023 21:02:05 -0500 Subject: Gemtext: Format quotes in italics --- mime/gemtext.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mime/gemtext.py') diff --git a/mime/gemtext.py b/mime/gemtext.py index 9436d3f..1f1cdfb 100644 --- a/mime/gemtext.py +++ b/mime/gemtext.py @@ -32,9 +32,14 @@ class Gemtext(Static): count = line.split(' ')[0][0:3].count("#") w = Static(line.lstrip("#"), markup=False, classes="header h"+str(count)) self.mount(w) + elif line.startswith(">"): + self.mount(Quote(line, markup=False)) else: self.mount(Static(line, markup=False)) +class Quote(Static): + pass + class Preformatted(Container): pass -- cgit 1.4.1