discord.js icon indicating copy to clipboard operation
discord.js copied to clipboard

Support markdown display in reply

Open jaw0r3k opened this issue 1 year ago • 7 comments

Which application is this bug report for?

Guide

Issue description

Well its more an ui package request, idk why i havent posted the issue with that form

Message replies arent displaying markdown

image

Steps to Reproduce

Just look at reply example

Versions

Not applicable

Issue priority

Low (slightly annoying)

jaw0r3k avatar May 23 '23 12:05 jaw0r3k

Hi, I've tested it and it works perfectly for me. Don't hesitate to share your code to find out if the problem isn't there.

image

MoskalykA avatar Jun 08 '23 17:06 MoskalykA

guide example shows smth different as you are showing pure discord not the ui package

jaw0r3k avatar Jun 08 '23 18:06 jaw0r3k

guide example shows smth different as you are showing pure discord not ui package

The link to the example seems incorrect

MoskalykA avatar Jun 08 '23 20:06 MoskalykA

Yes, that's the whole point of this bug report.

Jiralite avatar Jun 08 '23 21:06 Jiralite

Yes, that's the whole point of this bug report.

Oh sorry, I thought this repo wasn't about https://github.com/discordjs/guide

MoskalykA avatar Jun 09 '23 06:06 MoskalykA

It's not. It's about https://github.com/discordjs/discord.js/tree/main/apps/guide.

Jiralite avatar Jun 09 '23 08:06 Jiralite

I've investigated this issue and it seems like the problem lies with upstream mdx not supporting markdown within parameters. The DiscordMessageReply UI component currently takes in the reply content through DiscordMessage's reply.content prop, meaning mdx will not render markdown within that reply.content string.

sportshead avatar Oct 26 '23 17:10 sportshead