This README will contain the entire markdown standard to be used by parsers that parse plain, boring message content into ones with style.
All official parsers are open-source. Their source code can be found in this repository.
This will hereby begin the official markdown standard for FerrisChat chat messages.
FerrisChat's Markdown Standard inherits a majority of it's syntax from CommonMark.
All examples of markdown syntax will be displayed in the following format:
Raw | Rich | HTML |
---|---|---|
**example text** | example text | <b>example text</b> |
This section will go over markdown syntax that were completely inherited from CommonMark.
Two asterisks (*) placed both before and after text will make said text bold or strong.
Raw | Rich | HTML |
---|---|---|
**example text** | example text | <b>example text</b> |
Two underscores (_) placed both before and after text will not make said text bold or strong, unlike in CommonMark. The behavior of this syntax can be found at Underlines.
One asterisk placed both before and after text will make said text italicized, or slanted.
A single underscore (_) placed both before and after said text will also make the text italicized.
Raw | Rich | HTML |
---|---|---|
*example text* | example text | <i>example text</i> |
_example text_ | example text | <i>example text</i> |
Two tildes (~) placed before and after text will add a line over the center of the text, more commonly referred to as a "strikethrough".
Raw | Rich | HTML |
---|---|---|
~~example text~~ | <s>example text</s> |
One or two backticks (`) placed both before and after text will render the text in a monospaced font. Said text is usually pieces of code, hence the name "inline code".
Raw | Rich | HTML |
---|---|---|
`example text` | example text |
<code>example text</code> |
``example text`` | example text |
<code>example text</code> |
Three backticks placed both before and after text will render the text as a block with a distinct background and a monospaced font. Said text is usually blocks of code, hence the name "code-block".
Adding a valid syntax language code, followed by a newline right after the first 3 backticks with no space in-between will add syntax-highlighting to the code-block.
For example, here we are adding syntax-highlighting to a Python code-block: ```py ...```
Trailing newlines in the code-block will not be rendered.
Raw | Rich | HTML |
---|---|---|
``` example text ``` |
example text |
<pre><code>example text</code></pre> |
```py print('Hello, world!') ``` |
```py | |
print('Hello, world!') | ||
``` | <pre data-language="py"><code>...</code></pre> |