Skip to content

Instantly share code, notes, and snippets.

@Choco02
Forked from matthewzring/markdown-text-101.md
Created August 26, 2020 21:27
Show Gist options
  • Select an option

  • Save Choco02/064fb94ba68d23f4c86f8a5446cd53f3 to your computer and use it in GitHub Desktop.

Select an option

Save Choco02/064fb94ba68d23f4c86f8a5446cd53f3 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...

Sweet Styles

Italics *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, 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.

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. In Markdown, you can see that here:

asciidoc

asciidoc

autohotkey

autohotkey

bash

bash

coffeescript

coffeescript

cpp

cpp

cs

cs

css

css

diff

diff

fix

fix

glsl

glsl

html

html

ini

ini

json

json

md

md

ml

ml

prolog

prolog

py

py

tex

tex

xl

xl

xml

xml

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

Resources taken from Hammer and Chisel (https://bit.ly/1Ls2j6g) and Discord Highlight.js (https://discord.gg/SkZTwPk). Special thanks to Frosty#2790 for his help in making this guide.

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