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

Custom strategies #6

@regexident

Description

@regexident

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:

whatsapp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions