diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-01-23 21:02:05 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-01-23 21:02:05 -0500 |
| commit | 66c812709616b006fbbcd343dc3c9048ca39f8ea (patch) | |
| tree | f800785d1b4008212e81a268bee6ac853f5689e1 /mime | |
| parent | 419aafcf112fdb558f2a36fc4d92cd2b7ad2b936 (diff) | |
| download | browset-66c812709616b006fbbcd343dc3c9048ca39f8ea.tar.gz | |
Gemtext: Format quotes in italics
Diffstat (limited to 'mime')
| -rw-r--r-- | mime/gemtext.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
