Quaily uses GitHub Flavored Markdown Spec as the basic syntax for writing posts. Please refer to the GFM spec for more details.

Some syntaxes are not supported by GFM, but are supported by Quaily. They are listed below.

📧 Email Compatibility

Most of following syntax are currently rendered in the client browser only, and cannot be displayed in Email.

Text Styles

~~Strikethrough~~

==highlight text==

Use <kbd>Ctrl</kbd> + <kbd>C</kbd> or <kbd>⌘</kbd> + <kbd>C</kbd> to copy things.

Strikethrough

highlight text

Use Ctrl + C or + C to copy things.

Footnotes

Quaily supports PHP Markdown Extra style footnotes. Each footnote consists of two parts: a marker in the text that will become a superscript number [^N], and the footnote itself that will appear at the bottom of the document.

The footnote marker in the text can be placed anywhere in the document, but the footnote itself will always appear at the bottom of the document.

Here is an example:

"The road to hell is paved with good intentions" is a proverb or aphorism. 
An alternative form is "Hell is full of good meanings, but heaven is full of good works".[^1] 

The exact origin of this proverb is unknown and several variations exist. 
It appeared in full in a London newspaper in 1828 where it was referred to as a Portuguese proverb.[^2] 
It was also published in Henry G. Bohn's A Hand-book of Proverbs in 1855.[^3] 

...

[^1]: "the road to Hell is paved with good intentions", Proverbs, Infobase Publishing, 2007, p. 234, ISBN 9780816066735
[^2]: "2 Nov 1828, 1 - The Weekly Dispatch at Newspapers.com". Newspapers.com. Retrieved 2022-04-11.
[^3]: Bohn, Henry (1855), A Hand-book of Proverbs

Images

Add caption to an image:

![](https://static.quail.ink/media/qn2u29wq.webp "A girl and a boy, is playing in the yard")

An image to describe A girl and a boy, is playing in the yard A girl and a boy, is playing in the yard

Specify a width to an image:

![](https://static.quail.ink/media/qn2u29wq.webp?w=120px)

An image to describe post

Embeded Objected

3rd-party video link and object can be embedded in Quaily posts. Currently, Quaily supports the following video and object providers:

  • YouTube Embeded
  • Bilbili Embeded
  • X.com (formerly Twitter)
  • TradingView
  • Quaily's List and Post
  • Dify Embeded
  • Spotify Embeded
  • HTML5 Audio

The embed syntax is the same as the one used for images:

YouTube & Bilibili

![](https://youtu.be/dQw4w9WgXcQ?si=0kalBBLQpIXT1Wcd)

![](https://www.bilibili.com/video/BV1uT4y1P7CX)

X.com (formerly Twitter)

![](https://twitter.com/NASA/status/1704954156149084293)

TradingView

![](https://www.tradingview.com/chart/AA0aBB8c/?symbol=BITFINEX%3ABTCUSD)

Quaily Channels and Posts

![](https://quaily.com/blog)

![](https://quaily.com/blog/p/quail-weekly-19)

Dify Widget

![](https://udify.app/chatbot/1NaVTsaJ1t54UrNE)

Spotify Embed

![](https://open.spotify.com/track/5vdp5UmvTsnMEMESIF2Ym7)

HTML5 Audio

![](https://cdn1.suno.ai/fc991b95-e4e9-4c8f-87e8-e5e4560755e7.mp3)

Callouts

The github-style callouts is supported as well.

> [!NOTE]  
> Highlights information that users should take into account, even when skimming.

> [!TIP]
> Optional information to help a user be more successful.

> [!IMPORTANT]  
> Crucial information necessary for users to succeed.

> [!WARNING]  
> Critical content demanding immediate user attention due to potential risks.

> [!CAUTION]
> Negative potential consequences of an action.
NOTE

Highlights information that users should take into account, even when skimming.

TIP

Optional information to help a user be more successful.

IMPORTANT

Crucial information necessary for users to succeed.

WARNING

Critical content demanding immediate user attention due to potential risks.

CAUTION

Negative potential consequences of an action.

Fenced Divs

The fenced block syntax can be used to create a stylised block of text. The syntax starts with ::: and ends with :::.

The first line of the block is the type and title of the block, and the rest of the block is the content.

The predefined block types are: info, tip, important, warning, danger, info

Here is some examples:

:::info
This is a block of information, usually used to inform readers of some extra information. 
For example: grapes are a kind of fruit that can be eaten.
:::

:::tip
This is a tip, usually used to tell readers some tips. For example: 
you can eat grapes without spitting out the skin.
:::

:::warning
This is a warning, usually used to warn readers. For example: 
if you don't chew grapes, you may choke, please pay attention to the grapes in your mouth.
:::

:::danger
This is a danger message, usually used to emphasize dangerous operations. 
For example: choking on grapes can lead to death, please be careful!
:::
INFO

This is a block of information, usually used to inform readers of some extra information.
For example: grapes are a kind of fruit that can be eaten.

TIP

This is a tip, usually used to tell readers some tips. For example: you can eat grapes without spitting out the skin.

WARNING

This is a warning, usually used to warn readers. For example: if you don't chew grapes, you may choke, please pay attention to the grapes in your mouth.

DANGER

This is a danger message, usually used to emphasize dangerous operations. For example: choking on grapes can lead to death, please be careful!

Writer can also offer a title for the block:

:::danger Serious Announcement
The grapes are innocent, please do not ban the planting of grapes because eating grapes can lead to death.
:::
Serious Announcement

The grapes are innocent, please do not ban the planting of grapes because eating grapes can lead to death.

Equation, formula

Quaily uses MathJax to render equations and formulas. This is useful for writing scientific and engineering articles (please enable "Enable MathJax" at the post options), for example:

$$
\int f(x)dx \\
\int_1^\infty \frac{1}{x^2}dx
$$

will be rendered as:

\[\int f(x)dx \\ \int_1^\infty \frac{1}{x^2}dx \]

Mermaid Diagrams

Quaily uses mermaid.js to render diagrams, which is also a great tool for writing scientific and engineering articles.

The syntax is as follows:

sequenceDiagram
    Alice->>John: Hello John, how are you?
    John-->>Alice: Great!
    Alice-)John: See you later!
```mermaid
sequenceDiagram
    Alice->>John: Hello John, how are you?
    John-->>Alice: Great!
    Alice-)John: See you later!
```