v1.6.1

NanoMD Rendering Test

Last updated


Every syntax the dashboard declares, rendered on this page with the same NanoMD build.

Full rendering test


The test document below exercises every syntax the dashboard declares, and this page renders it with the same NanoMD build. This document tests the CommonMark, GFM and custom extensions the interface declares as supported. All chart values are test data; whether external images and media load depends on the network and interface limits. The document provides test cases; it does not mean every case has been visually verified.

Basic formatting


Plain text, bold, italic, bold italic, strikethrough, highlight, inline code.
Subscript: H2O. Superscript: x2.
This is the first paragraph.
This is the second paragraph. The next line uses two trailing spaces to force a line break. This line should break within the same paragraph.

Heading levels


Fourth-level heading

Fifth-level heading

Sixth-level heading

Alternate heading




Lists and quotes


  • Unordered list
    • Nested list
      • One level deeper
  • Bold list item
  1. Ordered item A
  2. Ordered item B
    • Unordered item inside an ordered list
  • Completed task
  • Pending task

A plain quote.
Second paragraph of the quote.
Nested quote.

NoteSupplementary information.

TipA suggestion for how to proceed.

ImportantImportant information.

WarningA warning.

CautionSomething to handle with care.

Tables


LeftCenterRight
BoldcodePlain text
Escaped pipe |highlightdeleted


Inline link: CommonMark
https://commonmark.org/
Reference link
Escapes: *not italic*, #not a heading, [not a link], $not a math delimiter.
This sentence has a numbered footnote.1 This sentence has a named footnote.2

Code


  1. const message = "Code block test";
  2. console.log(message);

  1. def greet(name):
  2. return f"Hello, {name}!"

Indented code:
const indented = true; console.log(indented);
An outer fence of four backticks should keep the inner three-backtick fence intact:
  1. **This should show as source, not bold**
  2. ```javascript
  3. console.log("Nested code fence");
  4. ```

Math


Inline formula: a^2+b^2=c^2.
Display formulas:
\int_a^b f(x)\,dx = F(b)-F(a)
  1. \int_a^b f(x)\,dx = F(b)-F(a)

\mathbf{A}=\begin{pmatrix}a&b\\c&d\end{pmatrix}
  1. \mathbf{A}=\begin{pmatrix}a&b\\c&d\end{pmatrix}

The block below uses the latex tag and should show only its source, not a rendered formula:
  1. E=mc^2

Chart.js charts


All values below are unitless test data, not real statistics.

Bar chart


CategoryValue
A12
B19
C7

  1. {"type":"bar","data":{"labels":["A","B","C"],"datasets":[{"label":"Value","data":[12,19,7]}]}}

Line chart


  1. {"type":"line","data":{"labels":["A","B","C"],"datasets":[{"label":"Trend","data":[12,19,7]}]}}

Pie chart


  1. {"type":"pie","data":{"labels":["A","B","C"],"datasets":[{"label":"Share","data":[12,19,7]}]}}

Doughnut chart


  1. {"type":"doughnut","data":{"labels":["A","B","C"],"datasets":[{"label":"Share","data":[12,19,7]}]}}

Radar chart


  1. {"type":"radar","data":{"labels":["A","B","C"],"datasets":[{"label":"Profile","data":[12,19,7]}]}}

Polar area chart


  1. {"type":"polarArea","data":{"labels":["A","B","C"],"datasets":[{"label":"Distribution","data":[12,19,7]}]}}

Scatter chart


  1. {"type":"scatter","data":{"datasets":[{"label":"Points","data":[{"x":1,"y":12},{"x":2,"y":19},{"x":3,"y":7}]}]}}

Bubble chart


  1. {"type":"bubble","data":{"datasets":[{"label":"Bubbles","data":[{"x":1,"y":12,"r":6},{"x":2,"y":19,"r":10},{"x":3,"y":7,"r":8}]}]}}

Mermaid diagrams


Flowchart


flowchart LR
    A[Input] --> B{Check}
    B -->|Pass| C[Render]
    B -->|Fail| D[Show source]
  1. flowchart LR
  2. A[Input] --> B{Check}
  3. B -->|Pass| C[Render]
  4. B -->|Fail| D[Show source]

Sequence diagram


sequenceDiagram
    participant U as User
    participant R as Renderer
    U->>R: Submit Markdown
    R-->>U: Show content
  1. sequenceDiagram
  2. participant U as User
  3. participant R as Renderer
  4. U->>R: Submit Markdown
  5. R-->>U: Show content

State diagram


stateDiagram-v2
    [*] --> Pending
    Pending --> Rendering
    Rendering --> Done
    Done --> [*]
  1. stateDiagram-v2
  2. [*] --> Pending
  3. Pending --> Rendering
  4. Rendering --> Done
  5. Done --> [*]

Class diagram


classDiagram
    class Document {
        +String title
        +render()
    }
    class Renderer {
        +parse()
    }
    Document --> Renderer : uses
  1. classDiagram
  2. class Document {
  3. +String title
  4. +render()
  5. }
  6. class Renderer {
  7. +parse()
  8. }
  9. Document --> Renderer : uses

Entity relationship diagram


erDiagram
    AUTHOR ||--o{ DOCUMENT : writes
    AUTHOR {
        string name
    }
    DOCUMENT {
        string title
    }
  1. erDiagram
  2. AUTHOR ||--o{ DOCUMENT : writes
  3. AUTHOR {
  4. string name
  5. }
  6. DOCUMENT {
  7. string title
  8. }

Gantt chart


gantt
    title Rendering test schedule (illustrative)
    dateFormat YYYY-MM-DD
    section Test
    Prepare cases :a, 2026-11-08, 1d
    Review output :b, after a, 1d
  1. gantt
  2. title Rendering test schedule (illustrative)
  3. dateFormat YYYY-MM-DD
  4. section Test
  5. Prepare cases :a, 2026-11-08, 1d
  6. Review output :b, after a, 1d

Timeline


timeline
    title Test stages
    Prepare : Write content
    Render : Show content
    Review : Manual check
  1. timeline
  2. title Test stages
  3. Prepare : Write content
  4. Render : Show content
  5. Review : Manual check

Images and media


This section tests embedding external resources; the URLs are not guaranteed to load in every environment.

Plain image


External test image

Fixed width and height


Fixed size test

Percentage width


Percentage width test

Fixed height


Fixed height test

MP4 player



MOV player syntax


This case deliberately uses a reserved domain: it tests whether the syntax is recognized as a player, but there is no actual video to play.

Bare YouTube URL


https://www.youtube.com/watch?v=aqz-KE-bpKQ

Vimeo embed test

Cases expected to fall back to source


The blocks below are deliberately invalid or unsupported; they should show their source without affecting the sections after them.
Invalid Chart.js JSON:
  1. {"type":"bar","data": }

Missing data:
  1. {"type":"bar"}

Unsupported chart type:
  1. {"type":"unsupported","data":{"labels":[],"datasets":[]}}

Invalid Mermaid syntax:
this is not a valid diagram
  1. this is not a valid diagram

Test boundaries


  • Raw HTML, CSS, JavaScript execution, collapsible blocks and other undeclared syntax are not guaranteed to be supported.
  • External media that fails to load because of anti-tracking, content security policy, network or source-site limits does not necessarily mean the Markdown syntax failed.
  • This is a test document; it has not been checked by screenshot or item by item in a browser.
  1. Numbered footnote content; it should appear in the footnote area with navigation.
  2. A named footnote that supports bold and links.