-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text wrapped or partially wrapped in curly braces do not render #3165
Comments
I was able to reproduce this using Bot code: this.onMessage(async (context, next) => {
const textWithBraces = 'Here is a message wrapped in curly braces: {Hello world!}';
const textWithoutBraces = 'Here is a message without curly braces: Hello world!';
await context.sendActivity(MessageFactory.text(textWithBraces, textWithBraces));
await context.sendActivity(MessageFactory.text(textWithoutBraces, textWithoutBraces));
await next();
}); |
@stevkan did this come from a customer? |
This is a very annoying bug that has been reported by me and others--is it really that hard to fix? No one can generate output with curly braces. |
It only affect the very last curly braces. We added a feature to Markdown-It to support accessibility by adding a syntax using curly braces, in #3022. The feature is designed to add Unfortunately, it also impact the last curly braces on the line. For example:
Will become
When we import/use the |
First, look at Use RegExp to filter to allow only `/^aria-/iu/. Add tests:
|
Screenshots
Version
CDN 4.9.0
Describe the bug
If the text sent from the bot to the user is fully wrapped or partially wrapped in curly braces, then the text is not rendered.
For partially wrapped text, this only applies if it is NOT the first word(s) in the text. If it is the first word(s), then that text will render. However, any other wrapped words will not.
This is not reproducible using v4.8.0
Steps to reproduce
Expected behavior
Any text wrapped in curly braces should fully render as intended by the bot
Additional context
From bot:
await stepContext.context.sendActivity('{Text sent by} the {bot}')
[Bug]
The text was updated successfully, but these errors were encountered: