~earboxer/browset

66c812709616b006fbbcd343dc3c9048ca39f8ea — Zach DeCook 1 year, 1 month ago 419aafc
Gemtext: Format quotes in italics
2 files changed, 8 insertions(+), 0 deletions(-)

M browset.css
M mime/gemtext.py
M browset.css => browset.css +3 -0
@@ 30,6 30,9 @@
}
.h3.header {
}
Quote {
	text-style: italic;
}
Preformatted {
		height: auto;
		border: round white;

M mime/gemtext.py => mime/gemtext.py +5 -0
@@ 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