modrunner / discord-bot

Node.js application powering the Modrunner Discord bot.
https://modrunner.net
Apache License 2.0
12 stars 5 forks source link

[Feature Suggstion] Markdown support of changelogs for code blocks #129

Open AzureDoom opened 3 months ago

AzureDoom commented 3 months ago

Suggestion Type

Suggesting an update to existing functionality

Description

Currently, the bot doesn't properly display changelogs if posted in markdown with codeblocks: image

How it displays on Modrinth: image

smcmo commented 3 months ago

Modrunner wraps all changelog content in a code block, to distinguish it visually from all the other information on the embed, though that does means changelogs using markdown formatting (especially those utilizing code blocks) can kinda break as we can see here.

I'll have to do some testing to find the best solution but my initial thoughts are to add a "advanced" notification style that preserves all markdown formatting from the changelog content, and change the normal style to strip out all formatting, maintaining a more plaintext changelog style.