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

"Get Alt Text" should print text in a code block, not a quote block #113

Open
AverageHelper opened this issue Jan 28, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@AverageHelper
Copy link
Contributor

AverageHelper commented Jan 28, 2024

Currently, Discord treats alt text as-is as plaintext in the context of image descriptions. But when CSBot sends that alt text as-is in a Discord message, Discord treats the payload as markdown. This leads to lossy conversions, since copying the text of the message does not convert the formatted message back into markdown plaintext.

Proposed solution: Instead of the current quote block (> ) format, we should instead render the alt text in a code block (```) between triple backticks. The layout is somewhat ugly, but at least the alt text would be copyable without losing precision.

If sighted users want a pretty alt text readout, they can enable Discord's own view, which can be enabled in Settings > Text & Images > With image descriptions.

@AverageHelper AverageHelper added the enhancement New feature or request label Jan 28, 2024
@JstnMcBrd JstnMcBrd moved this to Ideas in CS Bot Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ideas
Development

No branches or pull requests

1 participant