-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I need to take djot content, and replace certain types of links (to usernames) with other content (their display names).
To do that when I spot a certain event, of a certain format, I need to use it to look up user's information in the database. I can't do that in a .map(...) of an iterator, because I'm using async API.
I thought I could just use for event in events, but looks like the renderer expects a single iterator.
IMO, avoiding constraining API to iterator would work better here. A Renderer could have individual events pushed to it, and then the render_epilogue (fn finish might be a better name) could be called manually by the user. This would avoid async issues too. Iterator methods could be helpers.
Metadata
Metadata
Assignees
Labels
No labels