From bed436d997e45d90a7e8e83ac969ec236b9d895b Mon Sep 17 00:00:00 2001 From: Jang Rush Date: Mon, 19 Sep 2022 05:42:03 +0000 Subject: [PATCH] Add more discord markdown extensions --- _tools/discord.md | 64 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 11 deletions(-) diff --git a/_tools/discord.md b/_tools/discord.md index 3f69b33ba..fd725c9f4 100644 --- a/_tools/discord.md +++ b/_tools/discord.md @@ -68,6 +68,8 @@ syntax: see-also: - name: Discord Markdown Text 101 link: https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline- + - name: Discord Message Formatting Reference + link: https://discord.com/developers/docs/reference#message-formatting --- [Discord](https://discord.com/) is one of the most popular messaging and collaboration applications available. Popular among gamers and teenagers, Discord provides a snappy and well-designed interface that works well for communicating with friends. Similar to [Slack](/tools/slack/), Discord provides limited Markdown support which is comparable to other applications in this category. @@ -76,28 +78,68 @@ see-also: {% include tool-syntax-table.html %} -### Support for Additional Syntax Elements +### Extensions -As an added bonus, Discord provides support for several obscure elements. +Discord also adds the following extensions: + +- underline: `__underline__` +- spoiler: `||hidden text||` +- mention: `<@USER_ID>` +- channel: `<#CHANNEL_ID>` +- role: `<@&ROLE_ID>` +- slash command: `` +- custom emoji: `<:EMOJI_NAME:EMOJI_ID>` +- animated custom emoji: `` +- unix time: `` +- unix time styled: `` + +Unix time stamp is one of: - - - + + + - - - + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + +
ElementMarkdownRendered OutputStyleExample OutputDescription
SpoilersThis text will be hidden: ||spoilers||t16:20Short Time
T16:20:30Long Time
Underline__This text will be underlined.__This text will be underlined.d20/04/2021Short Date
D20 April 2021Long Date
f 20 April 2021 16:20Short Date/Time
FTuesday, 20 April 2021 16:20Long Date/Time
R2 months agoRelative Time
+ +`f` is the default style, i.e. `` is a shortcut for ``