skyra-project / discord-components

Discord Webcomponents for real looking messages on the web
MIT License
244 stars 31 forks source link

bug: Markdown in embed titles isn't taken in account #400

Closed GeekCornerGH closed 1 month ago

GeekCornerGH commented 1 month ago

Is there an existing issue for this?

Description of the bug

For now, when I put "Something" (underlined) as embed title, it will render as "__Something__".

Steps To Reproduce

Render an embed with title that is underlined

Expected behavior

Title should appear underlined

Screenshots

image

Additional context

Not sure if it happens with other markdown syntax as well or in other embed parts

favna commented 1 month ago

This library doesn't account for markdown to html anywhere. That's on you yourself to do with something like remark/rehype. This library is also primarily intended for static previews, not embed generators (for which there already are dozens and dozens of sites might I add)