File Formats
Markdown
Markdown is a lightweight markup language for creating formatted text using a plain-text editor. It is commonly used for documentation, notes, and web content.
Headings
H1 (one #)
H2 (two #)
H3 (three #)
Paragraphs
This is a paragraph of text.
(Separate paragraphs with a blank line.)
Formatted text
Italics (*text* or _text_)
Bold (**text** or __text__)
Bold & Italic (***text***)
Strikethrough (~~text~~)
Lists
- Unordered list item
- Another item
- Nested item
(Use-,*, or+for bullets.)
- Nested item
- Ordered list item
- Another item
- Nested item
(Numbers auto‐increment; indent to nest.)
- Nested item
Links
OpenAI
(Syntax: [label](URL "optional title"))
Images
(Syntax: )
Quotes
Prefix lines with
>for quotes.
Code block
// Triple backticks + language hint
function greet() {
console.log("Hello, world!");
}
Inline code: `const x = 42;`
(Code spans use backticks.)
Tables
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Cell | Cell | Cell |
(Syntax: | col | col | with a |---| separator row.)
Horizontal Rule
(Syntax: --- or *** on its own line.)
Task Lists
- Completed task
- Incomplete task
(Syntax: - [x] for done, - [ ] for not done.)
Escaping Characters
*Not italic* `Not code`
(Prefix any special character with \ to render it literally.)
Reference-Style Links
(Syntax: [label][id] then define [id]: URL anywhere in the file.)
Linking to Headings
(Syntax: [label](#heading-in-lowercase-with-hyphens))
Footnotes
Here is a claim that needs a source.1
(Syntax: [^id] inline, then [^id]: to define it.)
Footnotes
-
This is the footnote text. ↩