feat(cat-voices): handle markdown unknown embeds in VoicesRichText #3800
+117
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
VoicesRichText(divider).hrmarkdown element (---).Note the following limitations:
>>it will not immediately appear as a blockquote. The user must save it, open in edit again and only then this renders as a blockquote. The reason for this behavior is that theMarkdownCodecfrom the markdown_quill is only run when clicking theEditbutton.flutter_quillhas an API for recognizing formatting patterns but it's currently very limited and can only handle some limited cases (see:SpaceShortcutEvent).VoicesRichTexteditor has only handful of formatting styles but many many more are supported byflutter_quillandmarkdown_quillas listed in the Examples below.Related Issue(s)
Part of #3746
Screenshots
Divider support:
Screen.Recording.2025-12-01.at.20.10.59.mov
All supported markdown styles and attributes:
Screen.Recording.2025-12-01.at.20.15.36.mov
Examples
Not supported:
[ ]== some text ==Please confirm the following checks