[experimental] Add a renderLine event, and a demo that indents wrapped lines

These changes are experimental, not documented yet, and might not end up
in the stable API.