-
Notifications
You must be signed in to change notification settings - Fork 83
Markdown Reference
This page provides a comprehensive guide to writing GitHub-Flavored Markdown (GFM), LaTeX math formulas, and Mermaid diagrams in Markdown Viewer (v3.7.4).
- Headings
- Paragraphs & Line Breaks
- Emphasis & Text Formatting
- Blockquotes
- Lists & Task Lists
- Code Elements
- Horizontal Rules
- Links & Images
- Tables
- Footnotes
- HTML Sanitized Formatting
- LaTeX Mathematical Formulas
- Mermaid Diagrams
- Emoji & Alerts
You can write headings using hash symbols (#) at the beginning of a line:
# Heading 1 (Document Title)
## Heading 2 (Main Section)
### Heading 3 (Sub-Section)
#### Heading 4
##### Heading 5
###### Heading 6Alternative Setext syntax for Heading 1 and Heading 2:
Heading 1
=========
Heading 2
---------- Paragraphs: Separate paragraphs with a blank line.
-
Line Breaks: Insert two spaces at the end of a line, or end the line with a backslash (
\), to start a new line within the same paragraph.
This is paragraph one.
This is paragraph two.
Line one (ended with a backslash)\
Line two inside the same paragraph.
Line one (ended with two spaces)
Line two inside the same paragraph.| Style | Syntax | Output |
|---|---|---|
| Italic |
*text* or _text_
|
Italic |
| Bold |
**text** or __text__
|
Bold |
| Bold Italic | ***text*** |
Bold Italic |
| Strikethrough | ~~text~~ |
|
| Underline (HTML) | <u>text</u> |
Underline |
| Highlight (HTML) | <mark>text</mark> |
Highlight |
Use the > symbol to indent blockquotes:
> This is a blockquote.
>
> You can write multiple paragraphs inside a blockquote.
>
>> This is a nested blockquote level 2.Use -, *, or + to create bulleted lists:
- Item A
- Item B
- Nested Item B1
- Nested Item B2Use numbers followed by a period:
1. First item
2. Second item
1. Nested ordered item- [x] Completed task item
- [ ] Incomplete task item
- [x] Another completed taskWrap inline code code segments in single backticks:
Use the `const api = "/v1"` configuration variable to target the endpoint.Wrap code blocks in triple backticks and specify the programming language (e.g. javascript, python, html, css, bash, yaml) to enable syntax highlighting:
```javascript
const greet = (name) => {
return `Hello, ${name}!`;
};
console.log(greet("Developer"));
```Insert three or more hyphens, asterisks, or underscores on a line by themselves to create a divider:
---
***
___# Inline link
[GitHub](https://github.com)
# Link with a title tooltip
[GitHub](https://github.com "GitHub Homepage")
# Reference link
[GitHub][github-link]
[github-link]: https://github.com# Standard image

# Image with a title tooltip

# Reference-style image
![Alt text][logo-image]
[logo-image]: assets/icon.jpgUse vertical bars | to separate columns and hyphens - to create the header divider. You can align columns using colons ::
| Product Name | Quantity | Price |
| :--- | :---: | ---: |
| Markdown Editor | 1 | $0.00 |
| PDF Exporter | 5 | $0.00 |
| Dynamic Diagrams | 2 | $0.00 |-
:---: Left-aligned (default). -
:---:: Center-aligned. -
---:: Right-aligned.
Add footnotes using carets [^]:
Here is a sentence with a footnote citation.[^1]
[^1]: This is the text of the footnote displayed at the bottom of the page.You can write HTML tags directly in your Markdown files. The application sanitizes HTML using DOMPurify to block unsafe code (like <script> elements and inline event handlers):
<details>
<summary>Click to expand additional configurations</summary>
<p>Here is some additional content tucked inside an HTML details tag.</p>
</details>
<div class="alert alert-info">
This is a custom alert box using Bootstrap styles.
</div>LaTeX mathematical equations are typeset in real time using MathJax.
Wrap formulas in single dollar signs ($):
The quadratic formula is defined as $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ when solving equations.Wrap formulas in double dollar signs ($$):
$$
\int_{a}^{b} f(x) \,dx = F(b) - F(a)
$$| Description | Formula Syntax |
|---|---|
| Fractions | \frac{numerator}{denominator} |
| Integrals | \int_{lower}^{upper} x^2 \,dx |
| Summations | \sum_{i=1}^{n} a_i |
| Matrices | \begin{matrix} a & b \\ c & d \end{matrix} |
| Greek Letters | \alpha, \beta, \gamma, \theta, \lambda |
| Roots | \sqrt{x^2 + y^2} |
Wrap Mermaid syntax in a fenced code block with the mermaid language tag:
```mermaid
flowchart TD
A[Start Node] --> B{Is Authentication Valid?}
B -- Yes --> C[Access granted]
B -- No --> D[Access denied]
``````mermaid
sequenceDiagram
participant Client
participant API Worker
participant Storage
Client->>API Worker: HTTP POST Request (markdown content)
API Worker->>Storage: Save file state
Storage-->>API Worker: State saved confirmation
API Worker-->>Client: HTTP 200 OK Response
``````mermaid
gantt
title Development Sprint Tasks
dateFormat YYYY-MM-DD
section Parsing Core
Web Worker Integration :a1, 2026-06-01, 10d
DOM Patching Engine :after a1, 5d
section Desktop wrapper
Neutralino Shell Integration :2026-06-15, 8d
```Use emoji shortcodes to insert icons:
:rocket: :tada: :sparkles: :warning: :memo:- Renders as: π π β¨
β οΈ π
GitHub-style alert callouts are rendered with corresponding styling:
> [!NOTE]
> This is a general note callout box.
> [!TIP]
> This is a helpful tip callout box.
> [!IMPORTANT]
> This is a critical important callout box.
> [!WARNING]
> This is a warning callout box.
> [!CAUTION]
> This is a caution callout box.Markdown Viewer Repository Β· Apache-2.0 License
Developed and maintained by ThisIs-Developer
π Overview & Reference
π Getting Started & Usage
π³ Deployment & Wrappers
π οΈ Development & Journey