Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 1.43 KB

sample.md

File metadata and controls

78 lines (57 loc) · 1.43 KB

MemoryStick demo

Welcome to MemoryStick, a complete Markdown viewer written in Rust with Tauri.

Formatting

Task list

  • Full GFM support (tables, task lists, strikethrough)
  • Syntax highlighting (highlight.js, 36 common languages)
  • Math (KaTeX)
  • Mermaid diagrams
  • Colony themes
  • Coffee ☕

Code

fn fibonacci(n: u32) -> u64 {
    match n {
        0 => 0,
        1 => 1,
        _ => fibonacci(n - 1) + fibonacci(n - 2),
    }
}
def fibonacci(n):
    a, b = 0, 1
    for _ in range(n):
        yield a
        a, b = b, a + b

Table

Language Score Remark
French 10 Native language
English 8 Fluent
Klingon 2 Getting there

Citation

Simplicity is the ultimate sophistication.

Leonardo da Vinci

Math

Inline: $E = mc^2$ and $\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$.

Block:

$$ \int_{-\infty}^{\infty} e^{-x^2} , dx = \sqrt{\pi} $$

Mermaid diagram

flowchart LR
    A[.md file] --> B{MemoryStick}
    B --> C[HTML rendering with comrak]
    B --> D[Automatic TOC]
    B --> E[Mermaid + KaTeX + hljs]
Loading

Footnote

Here is a reference1.

Footnotes

  1. And here is the note itself. ↩