Discord Uses Highlight.js. On top of Markdown, Discord also provides syntax highlighting via a JavaScript library called highlight.js. Specifically, Discord uses the solarized Dark theme. If you want in-depth information about how exactly the syntax highlighting works, you can look into Highlight.js, since it is the exact library used by Discord. Discord markdown. Not a member of Pastebin yet? Sign Up, it unlocks many cool features! Jul 31, 2020 Discord uses the “Markdown Text” formatting system, a markup language that uses plain text for formatting. Essentially, it converts what you write in plain text into HTML which is then rendered in.
We've been using Discord at Supernotes since the beginning, it even made our list of the Best Productivity Tools for Startups. Using Markdown in messages is great fun, but if you're new to it, it can be confusing. So here's a quick cheatsheet for you below:
The above cheat-sheet is actually an embedded notecard, written on Supernotes. You can open it in a new window by clicking the title – there you will find a dark mode switch if you are up late. Want to make one for yourself? Try Supernotes now, it's free. And the bonus is that we have an even wider range of Markdown support from highlights to references!
Bonus Markdown Tip – Links
Unfortunately Discord doesn't support Markdown links, but it is the most common point of confusion with Markdown. How do you remember the correct order for square brackets / parathenses to create a link like so:
Never get it wrong again, with this simple method:
- Square brackets
[ ]
are associated with straight edgedTEXT
- Round parentheses
( )
are associated with a roundURL
[TEXT]
is before(URL)
in the dictionary so[TEXT](URL)
Also remember to append https://
to the URL otherwise most Markdown editors will treat this as an internal link.
If you found this useful give us a buzz over on Twitter, @supernotesapp, we'd love to hear from you!
### Styling*italics*
– italics**bold**
– bold__underline__
– underline||spoiler||
– !!spoiler!!~~strikethrough~~
– strikethrough
Discord Markdown 1010
Code
You can create inline code
by wrapping text with a single backtick `, or multi line code with three. Remember to [shift] + [enter] to create a new line in the Discord chat box. Make use of syntax highlighting and append the three first backticks, with the code language:
Blockquotes
You can create single and multiline blockquotes, similar to code blocks, using >
or >>>
followed by a space, so...
becomes...
Supernotes is a fast note-taking tool
Latest versionReleased:
Convert discord messages to HTML
Project description
I needed to render some Discord chat logs as HTML, and found that the Markdown implementation in Discord isn't quite compliant with Common Markdown as Discord uses a simplified version.
So I wrote this library that allows you to convert a discord message written in the Markdown formatting syntax specified here to html.
Installation
You can install the library from pypi
:
Usage
Release historyRelease notifications | RSS feed
0.4.0
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size discord_markdown-0.4.0-py3-none-any.whl (6.1 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size discord_markdown-0.4.0.tar.gz (4.8 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for discord_markdown-0.4.0-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 94dce3ee4f0f6e889dae26fe8505f9d9ae14872957931da58c368553670f5243 |
MD5 | 91bfd65f6634023c3882ee61ee4a3f8a |
BLAKE2-256 | b4f118f2e17aa8ace1930625b9e75c31ebe74dc599c47962719b773bcc2298ee |
Markdown Bold
Hashes for discord_markdown-0.4.0.tar.gz
Discord Markdown Text
Algorithm | Hash digest |
---|---|
SHA256 | ce317edf99606e5fe8137c554754f6eb9942caa8526415e5e89bb5afd3292c37 |
MD5 | ad3508240f1a82410ac788252f2869bb |
BLAKE2-256 | 3f8cc05a5a4071a0d08fe2e49673951598c3752fdd248441f5dafe11df64bb08 |