Botframework-sdk: [Message Formatting] Backtick not working on Slack

Created on 19 Jul 2017  路  10Comments  路  Source: microsoft/botframework-sdk

System Information (Required)

  • SDK Language: NODE
  • SDK Version: 3.8.4
  • Development Environment: LOCALHOST

Issue Description

When sending a message with the backtick (`) character for code formatting, Slack is ignoring the formatting.

This is working correctly under Teams. Also, using <code></code> works in Teams but not in Slack.

Code Example

export default function helpLibrary (dependencies) {
  const lib = new builder.Library('help')

  lib.dialog('/', (session, args) => {
    session.endDialog('Help is `disabled`')
  })
  .triggerAction({ matches: 'help' });

  return lib.clone()
}

Expected Behavior

Slack will format the text inside backticks as code.

Actual Results

Slack ignores the backticks.

bug

Most helpful comment

Yes, still facing this issue.

All 10 comments

I had a look to your issue and can confirm that I got the same problem with C#: I tried single, double and triple backsticks, even HTML encoded:

C# await context.PostAsync($: Help is `disabled` (x1) or ``disabled`` (x2) ordisabled(x3), with html: &#96;disabled&#96;");

Result is the following: no code formatting / all backsticks removed.
image

@bilby91 Did you try escaping the backtick chars with preceding slash \?

--> session.send("Message with \`code formatting\` here");

@nwhitmont Yes, this doesn't work:

session.send("foo \`code\` foo");

(Here the markdown is escaping some chars)

Verified this is a bug.

This is a bug in Microsoft internal Slack connector right?

@nwhitmont Any ETA for a fix ?

@bilby91 Just got a fix checked-in today. Should be working shortly.

fixed

@nwhitmont backticks are still not working in NodeJS/Slack, could be this other issue https://github.com/Microsoft/BotBuilder/issues/3399 related? looks like markdown support isn't working fine for Slack.

Yes, still facing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

verdysh picture verdysh  路  3Comments

jschristophe picture jschristophe  路  3Comments

vaditya04 picture vaditya04  路  3Comments

somprabhsharma picture somprabhsharma  路  3Comments

Arimov picture Arimov  路  3Comments