Feature Demo Blog: Rich Text, Mermaid, Math, and Shortcodes

By canxin6 minutes read


Archived

This page will keep evolving as the theme and engine are updated.

Trigger Warning

This page contains many format demos (including external media, collapsible blocks, and dynamic visuals), so feel free to expand sections as needed.

Disclaimer
  • This is a showcase page, focused on rendering capabilities.
  • Some images/videos come from external sources and may load at different speeds.

Table of Contents

  1. Basic Markdown Capabilities
  2. Lists, Tasks, and Footnotes
  3. Tables and Code Highlighting
  4. GitHub-style Alerts
  5. KaTeX Formulas
  6. Mermaid Diagrams
  7. Duckquill Shortcodes
  8. HTML Extension Capabilities
  9. Buttons and Quick Navigation
  10. Page-level Front Matter Features
  11. Backlinks Demo

This post is the demo blog page of this site, used to centralize and verify rich-text and extended formatting capabilities.

Basic Markdown Capabilities

Text styles: bold, italic, strikethrough, inline code, and even combined style all together.

This is a quote block.

Here is a nested quote:

Duckquill is great for clear and structured technical writing.

Lists, Tasks, and Footnotes

  1. Write content
  2. Preview locally
  3. Publish

Footnote example1 and linked footnote2.

Definition List example:

Mermaid
Describe graph structures with text, then render them into SVG automatically.
KaTeX
High-performance rendering for LaTeX math formulas.
Duckquill Shortcodes
Theme-level feature extensions, such as alert, image, video, and youtube.

Tables and Code Highlighting

FeatureStatusNotes
GitHub AlertsEnabledSupports [!NOTE] and related syntax
Syntax HighlightingEnabledSupports line numbers and highlighted lines
MermaidEnabledSupports rendering from mermaid code blocks
KaTeXEnabled on this pageVia extra.katex = true
fn main() {
    println!("Duckquill demo blog");
}
[extra]
show_copy_button = true
show_reading_time = true
show_share_button = true

GitHub-style Alerts

This is a NOTE alert used to provide background context.

This is a TIP alert used for practical suggestions.

This is an IMPORTANT alert used to emphasize critical steps.

This is a WARNING alert used to call out potential issues.

This is a CAUTION alert used to describe risky behavior.

KaTeX Formulas

Inline formula: $E = mc^2$.

Block formula:

$$ f(x) = \int_{-\infty}^{\infty}\hat{f}(\xi)e^{2\pi i\xi x},d\xi $$

Mermaid Diagrams

The following mermaid block is rendered as a flowchart:

flowchart LR
    A[Writing] --> B[Git Commit]
    B --> C[Zola Build]
    C --> D[Static Deploy]
    D --> E[Visit Site]

Another sequence diagram example:

sequenceDiagram
    participant U as User
    participant G as Git Repo
    participant Z as Zola
    U->>G: push content
    G-->>Z: trigger build
    Z-->>U: generated public site

Duckquill Shortcodes

alert shortcode (different from GitHub alerts; this is theme shortcode):

This is a note shortcode alert.

This is a tip shortcode alert.

This is an important shortcode alert.

This is a warning shortcode alert.

This is a caution shortcode alert.

Image shortcode (basic usage):

Local feature demo figure

Image shortcode (more options):

Compressed preview demo Feature local figure

Float start demo This text demonstrates the start floating image behavior, where the image sticks to the start side of the paragraph.


Float end demo This text demonstrates the end floating image behavior, where the image sticks to the end side of the paragraph.

Spoiler image demoSolid spoiler image demo

Video shortcode (basic and autoplay examples):

YouTube / Vimeo / Mastodon shortcode links:

(Note: to avoid noisy console output from third-party embeds in this showcase, these are shown as links.)

CRT shortcode:

HTML Extension Capabilities

Click to expand a collapsible panel

You can put any content here, including lists, images, or code snippets.

  • Collapsible content A
  • Collapsible content B

Common inline HTML tags also work directly:

This is a <small> side note text example.

Form and interaction widget examples:

Current accent color: #14897bContent density: 72%

Image + caption composition (figure + figcaption):

Local figure demo
Local image + figcaption (no external dependency, stable to render).

Progress bar example (linked with the range input through page script):

Buttons and Quick Navigation

Page-level Front Matter Features

Besides featured = true, this page also demonstrates:

This section is a compact checklist for validating page-level config rendering.

I have added a link to this post from the about page.

If a Backlinks item appears in the quick-action buttons, the internal backlink index is working as expected.


If all modules above render correctly, it means the blog’s rich-text capability now covers most common writing scenarios.

  1. Footnotes are great for extra explanation without interrupting the main reading flow.

  2. Footnotes can also contain links

Comments