Back to Blog

MDX Rendering Formats

A small preview article for custom inline and block rendering styles.

MDX Rendering Formats

This article previews the special MDX and Markdown formats supported by the template.

Quote

A blockquote can highlight a short excerpt, aside, or source note without breaking the rhythm of the article.

Hover Reveal

Hover to reveal this hidden inline note while reading.

The syntax is:

||this hidden inline note||

Muted Strikethrough

Use muted deleted text when an old thought should stay visible but less prominent.

The syntax is:

~~muted deleted text~~

Fold

Click to expand

The right-bottom corner belongs to the whole fold area.

When this section opens, the corner moves to the bottom of all visible and folded content.

The syntax is:

:::fold[Click to expand]
Hidden content can include paragraphs, lists, and code blocks.
:::
Open by default

This fold starts open, so the bottom-right corner is already placed at the end of the full content area.

商业转载请联系站长获得授权,非商业转载请注明本文出处及文章链接,您可以自由地在任何媒体以任何形式复制和分发作品,也可以修改和创作,但是分发衍生作品时必须采用相同的许可协议。本文采用 CC BY-NC-SA 4.0 - 非商业性使用 - 相同方式共享 4.0 国际 进行许可。

Comments

Notes, questions, and follow-ups are welcome here.

Comments are temporarily unavailable because WALINE_SERVER_URL or PUBLIC_WALINE_SERVER_URL is not configured.