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

Markdown not rendering in cards #2062

Closed
tdurnford opened this issue Jun 6, 2019 · 0 comments · Fixed by #2063
Closed

Markdown not rendering in cards #2062

tdurnford opened this issue Jun 6, 2019 · 0 comments · Fixed by #2063
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior. front-burner support Internal request for assistance from the Support Team

Comments

@tdurnford
Copy link
Contributor

Screenshots

imgpsh_mobile_save

Describe the bug

The markdown renderer is not being passed to the createAdaptiveCardsAttachmentMiddleware function as a parameter, so Web Chat is throwing a warning that the markdown render for attachments is undefined and all markdown in cards is being ignored.

To Reproduce

Send a card such as a hero card with markdown to Web Chat.

const heroCard = CardFactory.heroCard(
    '[BotFramework Hero Card](https://microsoft.com)',
    CardFactory.images(['http://localhost:3978/dog.jpg']),
    CardFactory.actions([
        {
            type: 'openUrl',
            title: 'openUrl',
            value: 'https://azure.microsoft.com/en-us/pricing/details/bot-service/'
        },{
            type: 'postBack',
            title: 'postBack',
            value: 'postBack'
        },{
            type: 'imBack',
            title: 'imBack',
            value: 'imBack'
        }])
);

await context.sendActivity({ attachments: [heroCard] });

Expected Result

image

Actual Result

image

[Bug]

@tdurnford tdurnford added bug Indicates an unexpected problem or an unintended behavior. Pending labels Jun 6, 2019
@tdurnford tdurnford self-assigned this Jun 6, 2019
@corinagum corinagum added support Internal request for assistance from the Support Team front-burner and removed Pending labels Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. front-burner support Internal request for assistance from the Support Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants