Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kzu
Copy link
Member

@kzu kzu commented Jun 23, 2025

Since we now report when the WhatsApp pipeline is executed from the console, a handler might want to send formatted markup to the console.

Reactions (since they contain a single character by default) are safe to render as markup (and could contain arbitrary additional markup). For text, we attempt to parse markup if text starts with [ and ends with ] which is a pretty good indicator.

We fallback to text in that case.

Since we now report when the WhatsApp pipeline is executed from the console, a handler might want to send formatted markup to the console.

Reactions (since they contain a single character by default) are safe to render as markup (and could contain arbitrary additional markup). For text, we attempt to parse markup if text starts with `[` and ends with `]` which is a pretty good indicator.

We fallback to text in that case.
@kzu kzu added the enhancement New feature or request label Jun 23, 2025
@kzu kzu enabled auto-merge (rebase) June 23, 2025 00:08
@kzu
Copy link
Member Author

kzu commented Jun 23, 2025

37 passed 37 passed 7 skipped

🧪 Details on Ubuntu 24.04.2 LTS

from dotnet-retest v0.7.1 on .NET 8.0.17 with 💜 by @devlooped

@kzu kzu merged commit 667d776 into main Jun 23, 2025
7 checks passed
@kzu kzu deleted the dev/SmarterFormat branch June 23, 2025 00:10
@devlooped devlooped locked and limited conversation to collaborators Jul 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants