Skip to content

Instantly share code, notes, and snippets.

@Shimo74
Forked from matthewzring/markdown-text-101.md
Last active March 4, 2023 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shimo74/a0d07142f5912128d447aebf75230dcb to your computer and use it in GitHub Desktop.
Save Shimo74/a0d07142f5912128d447aebf75230dcb to your computer and use it in GitHub Desktop.
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Forker comment: I updated Syntax Highlighting section (as of 2023/1/7), everything else is same as original.

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

Bold **bold**

Underline bold __**underline bold**__

Bold Italics ***bold italics***

underline bold italics __***underline bold italics***__

Underline __underline__

Strikethrough ~~Strikethrough~~

Don't want to use markdown? You can slap a backslash in front of your statement, or put your message in a code block, and it'll escape the markdown formatting. You'll see those asterisks as you'd like! Just keep in mind, it doesn't work in messages with edits or underscores.

Block Quotes

The syntax to use Block Quotes is > or >>> followed by a space.

> at the beginning of a line of text, creates a single-line block quote.

one line block quote

>>> at the beginning of a line of text, creates a multi-line block quote. All text from >>> until the end of the message will be included in the quote.

multiline block quote

Code Blocks

Discord also supports code blocks as well. You can make your own code blocks by wrapping your text in backticks (`)

one line code blocks

You can also use three backticks (```) to create multiline code blocks, like this beautifully written haiku.

multiline code blocks

Syntax Highlighting

If you really want to spruce up your code blocks, you can denote a specific language for syntax highlighting, by typing the name of the language you want the code block to expect right after the first three backticks beginning your code block. An example...

syntax highlighting

There are many different languages in place of Markdown that Discord's syntax highlighting support. Each different language has its own approach to highlight-able syntax. For a full list: https://highlightjs.org/static/demo/. Note that you won't be able to view syntax highlighting on the mobile app.

asciidoc

asciidoc

New color as of 2023/1/7

asciidoc

try by yourself
= Blue = 
blue above equals sings
=====
blue above dashes
-----
[Orange]
Orange :: grey
- hyphen
* bullet point

autohotkey

autohotkey

New color as of 2023/1/7

autohotkey

try by yourself
A_Red
%Yellow%
^Orange::
123

bash

bash

New color as of 2023/1/7

bash

try by yourself
$Yellow
"Cyan"
#Grey
test echo exit red
false true cyan
if else then green
thisIsBlue() {
#!Bash

coffeescript

coffeescript

New color as of 2023/1/7

coffeescript

try by yourself
Blue = ->
"Cyan"
class Yellow extends Yellow
"#{Orange}"

cpp (C++)

cpp

New color as of 2023/1/7

cpp

try by yourself
#orange <cyan>
"cyan"
int blue()

cs (C#)

cs

New color as of 2023/1/7

cs

try by yourself
# orange text
" cyan text "
' cyan text '
123 !@#

css

css

New color as of 2023/1/7

css

try by yourself
Text is green
#blue (one word)
.blue (one word)
{yellow: 'Yellow one word before colon. Cyan after colon, inside quotes'}
green.blue
[orange]

diff

diff

New color as of 2023/1/7

diff

try by yourself
- Red
+ Green
--- grey
*** grey
! green

fix

fix

New color as of 2023/1/7

fix

try by yourself
Everything is yellow
123 !@#
= cyan after equal sign

glsl

glsl

New color as of 2023/1/7

glsl

try by yourself
#Orange text
123

ini

ini

New color as of 2023/1/7

ini

try by yourself
[ blue inside brackets]
; grey

json

json

New color as of 2023/1/7

json

try by yourself
[ { "yellow": "cyan"}, ]

md (markdown)

md

New color from 2023/1/7

md

try by yourself
[cyan] (orange)
[cyan] [orange]
# blue
* bullet point
1. numbered list
/* orange text *
> grey text
< yellow > 
< yellow
multiline >
<blue>
<blue yellow>
<blue yellow="cyan">
#blue
blue above dashes
--------
blue above equals signs
=====
123

ml

ml

New color as of 2023/1/7

ml

try by yourself
Yellow For Capital
"cyan text"
'red'
grey for lowercase
123

prolog

prolog

New color as of 2023/1/7

prolog

try by yourself
Orange For Capital
'cyan text'
grey for lowercase
123

py

py

New color as of 2023/1/7

py

try by yourself
@ Orange text
'cyan text'
# grey text
123 !@#

tex

tex

New color as of 2023/1/7

tex

try by yourself
$ Everything is highlighted
123
#

xl

xl

New color as of 2023/1/7

xl

try by yourself
All grey
123 !@#
'cyan text'

xml

xml

New color as of 2023/1/7

xml

try by yourself
<blue first then yellow = onegreenword after equals sign>

And you get the idea! Now you're a Discord text markdown expert. Get out there and highlight your statements!

Acknowledgements

Hammer and Chisel
Discord Highlight.js

A special thanks to Frosty#9449 for their help in making this guide.

If you have any questions or want to get in contact with me, you can add Matthew#2334 on Discord or join my support server.

@Apraxed
Copy link

Apraxed commented Jan 16, 2023

lua also has one now
image

@Spiretail
Copy link

Spiretail commented Mar 4, 2023

Asciidoc has quite a few more:

DiscordCanary_ILCFCU4Zta

Try it yourself:
asciidoc
= Blue
blue above equals sings
==
blue above dashes
--
blue above plusses
++
[Light Blue]
:Light Blue:

Orange :: white
- hyphen
* bullet point
.purple text
////
grey text between different symbols
////
....
grey text between different symbols
....
..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment