Thoughts and ramblings (mikegerwitz.com)
 
 
 
 
 
 
Go to file
Mike Gerwitz 8ce8b5a7f7
HTML details styling and parsing improvements
The article I'm working on makes (very) heavy use of the `details` HTML
element, and nests them.  Making sense of the article without
indentation is difficult and torturous.

This has complicated the prefmt script enough that it really ought to be
extracted into something else.  I'm admittedly disappointed that I've
had to do this much work with it, because it completely sacrifies any
hope of portability.  Oh well, that's not even a design goal, though
it'd be nice to be able to have the preview of Markdown files make sense
in e.g. Forejo.

I figured I'd have the least numbre of problems with nesting if I strip
whitespace prefixes based on the current level of nesting.  To avoid
surprises, I enforce expectations statically---it will not compile
without proper nesting.

To reduce the potential blast radius, I'm doing this only for `details`
for now; it'll expand later on.  I did diff the output of older articles
to make sure they were unaffected.
2024-03-18 23:32:57 -04:00
_raw/about : GPG key change and transition statement 2016-10-13 23:10:14 -04:00
build-aux Source Sans Pro => Open Sans 2019-01-16 23:44:47 -05:00
conf Use forge.mikegerwitz.com (Forgejo) instance for /projects 2023-03-21 00:43:15 -04:00
docs/gh Remove old files 2019-01-17 23:31:21 -05:00
fonts Source Sans Pro => Open Sans 2019-01-16 23:44:47 -05:00
images Remove proxying via torify 2023-12-17 12:01:57 -05:00
papers papers/tpl: Add missing symlink 2023-12-17 11:49:00 -05:00
post post/2019-02-18: Exceptional access: Tie escapes 2023-12-18 02:42:22 -05:00
src HTML details styling and parsing improvements 2024-03-18 23:32:57 -04:00
submodule Update papers 2021-06-23 22:32:27 -04:00
tools :cptt: Add archive 2018-06-03 00:26:45 -04:00
.gitignore Use forge.mikegerwitz.com (Forgejo) instance for /projects 2023-03-21 00:43:15 -04:00
.gitmodules Update papers 2021-06-23 22:32:27 -04:00
.mailmap :.mailmap to normalize e-mail addresses 2015-05-22 01:48:18 -04:00
COPYING :CC BY-SA {3.0=>4.0} 2015-11-20 23:22:41 -05:00
COPYING.CCBYSA :CC BY-SA {3.0=>4.0} 2015-11-20 23:22:41 -05:00
COPYING.GPLv3 All creative content (e.g. thoughts) now licensed under CC BY-SA 2013-06-16 20:35:22 -04:00
Makefile Use forge.mikegerwitz.com (Forgejo) instance for /projects 2023-03-21 00:43:15 -04:00
README Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
THANKS :Ignore previous version of mobile post; update THANKS 2018-05-05 21:57:18 -04:00
bootstrap Remove proxying via torify 2023-12-17 12:01:57 -05:00
style.css HTML details styling and parsing improvements 2024-03-18 23:32:57 -04:00

README

The miscellaneous thoughts and ramblings of a free software hacker.

https://mikegerwitz.com/