This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Description
Hi @mattt,
I'm currently working on integrating CommonMarkAttributedString into Nio, a Matrix client.
Since Matrix supports rich-text messages using common-mark markdown it would be great if the app could preview the formatting of one's message before sending, similar to how WhatsApp does it:

It basically parses the message body and applies the corresponding attributes to the raw markdown input, while reserving the markup characters.
I wonder if a migration to CommonMark's upcoming visitor API could make custom strategies like this possible?
I'm not exactly sure what would be the best API for this, but one should be able to customize both, the output strings and corresponding attributes.