FW: Text reflow woes (or: I want bullets back!)y
Aaron Janse
aaron at ajanse.me
Mon Jan 20 19:53:51 GMT 2020
Attached is a <100 line python gemini renderer with the following features:
* no external dependencies
* only two state variables
* unlimited-depth ordered lists that rotates through
* numbers
* letters (does `az` after `z`, `aaa` after `zz`, etc)
* roman numerals
* unlimited-depth unordered lists
* unlimited-depth headers with rotating colors
* wraps at word boundaries, with fancy indents for lists and quotes
* colors for all special syntax
* horizontal rules that span the width of the display
* preformatted text
* links
To use this script, pipe text/gemini into stdin.
I hope this makes a strong case that these features aren't too complex to
implement.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gemini.py
Type: text/x-python
Size: 2501 bytes
Desc: not available
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200120/40ce994f/attachment-0001.py>
More information about the Gemini
mailing list