Skip to content
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

Formatting messages does not support markdown anymore? #926

Closed
5 of 9 tasks
danielkcz opened this issue Dec 6, 2019 · 3 comments
Closed
5 of 9 tasks

Formatting messages does not support markdown anymore? #926

danielkcz opened this issue Dec 6, 2019 · 3 comments
Assignees
Labels
question M-T: User needs support to use the project

Comments

@danielkcz
Copy link

danielkcz commented Dec 6, 2019

Description

It seems that Slack has changed how messages are formatted. When pasting a text hello **world** into any Slack window, it does not get transformed anymore as it used to and is displayed as-is. The same happens when sending a message through @slack/webhooks.

image

The official documentation hasn't caught up with that change just yet it seems. I am not sure how are we suppose to format messages.

I don't need any sort of interactive message, just a simple highlight of important pieces of information.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
@stevengill stevengill added the question M-T: User needs support to use the project label Dec 6, 2019
@stevengill
Copy link
Member

Hey @FredyC,

A few possible things going on.

Firstly, for bolding you only need one asterisk *wolrd*. Checkout our formatting messages guide to see the supported markup.

Slack released a new WYSIWYG messaging tool. This is the new default in the desktop client (and web browser). It looks like the following:

WYSIWYG

When I copy and paste hello *world* into the WYSIWYG message box, it doesn't convert it to markup. To me, this seems like it could be a bug. If I am typing instead of copying, hello *world* does bold.

If I turn off WYSIWYG (going back to the original message box), copying and typing hello *world* both work.

Could you provide a quick sample of it not working with @slack/webhooks for you? It should work. Most text objects support it by setting the type to mrkdwn.

@stevengill stevengill self-assigned this Dec 6, 2019
@danielkcz
Copy link
Author

danielkcz commented Dec 6, 2019

You are right, when I copy & paste hello *world* into WYSIWYG, this message pops up and clicking on Apply does transform it correctly. So that was a mistake on my side to use a wrong markup.

image

Using the same formatting works through webhook as well.

Silly me, not sure why I thought that ** is correct format :) Thank you for a quick response.

@camriera
Copy link

camriera commented Jun 8, 2022

Hey @stevengill - Maybe I'm missing something in the documentation but it doesn't appear that slack parses markup for bold or italics for non-word boundaries. As in if I wanted to bold or italicize part of a word.

I'm trying to build a slash command for converting text using the Bionic Reading style, and this is a blocker unless theres a workaround.

image

Cheers,
Cam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question M-T: User needs support to use the project
Projects
None yet
Development

No branches or pull requests

3 participants