Collecting my attempts to improve at tech, art, and life

2021-09-25

Tags: hackers-town look

Does any of this enlighten, entertain, or otherwise please you? Please consider a Tip. Every little bit helps!

I last updated this page

Activity Log

hackers.town: 2021-09-25 Sat 08:57

Having way too much fun this morning with markdown-it-py and Rich.

screenshot of split terminal; left half shows Python code; right shows richly formatted markdown source, html output, and multiple views of markdown-it-py parse tokens

hackers.town: 2021-09-25 Sat 20:37

Got more code than strictly needed to provide an itty bitty reStructuredText directive, replacing a big chunk of static HTML, which replaced a nonportable shortcode.

Directive uses Pillow for image data and to generate thumbnails as needed. Fun!

split screenshot of terminal with editor holding rst document (with static HTML in place for comparison), editor holding python directive code, and browser view of results

hackers.town: 2021-09-25 Sat 20:39

So now I know how to (slowly) make a useful reStructuredText directive, which has been on my Python learning list for a decade or so.