- What is Markdown?
- What is CommonMark?
- What is GitHub Flavored Markdown?
- What is LaTeX?
- How to use LaTeX in Markdown?
- What has OpenNote offered?
- Some Basic Markdown Syntax
- Some Extended Markdown Syntax
- LaTeX Math Syntax
- Greek Letters
- References
Markdown is a plain text format for writing structured documents, based on conventions for indicating formatting in email and usenet posts. It was developed by John Gruber (with help from Aaron Swartz) and released in 2004 in the form of a syntax description and a Perl script (Markdown.pl) for converting Markdown to HTML.
In the next decade, dozens of implementations were developed in many languages. Some extended the original Markdown syntax with conventions for footnotes, tables, and other document elements. Some allowed Markdown documents to be rendered in formats other than HTML.
Websites like Reddit, StackOverflow, and GitHub had millions of people using Markdown. And Markdown started to be used beyond the web, to author books, articles, slide shows, letters, and lecture notes.
CommonMark was developed to address inconsistencies and ambiguities in Markdown.
The CommonMark specification defines rules for elements such as headings, lists, links, emphasis, and code blocks, among others.
By adhering to the CommonMark standard, developers can ensure consistent rendering of Markdown content across different applications and platforms.
GitHub Flavored Markdown, often shortened as GFM, is the dialect of Markdown that is currently supported for user content on GitHub.com and GitHub Enterprise.
This formal specification, based on the CommonMark Spec, defines the syntax and semantics of this dialect.
GFM is a strict superset of CommonMark. All the features which are supported in GitHub user content and that are not specified on the original CommonMark Spec are hence known as extensions, and highlighted as such.
While GFM supports a wide range of inputs, it’s worth noting that GitHub.com and GitHub Enterprise perform additional post-processing and sanitization after GFM is converted to HTML to ensure security and consistency of the website.
LaTeX is a typesetting system commonly used for producing scientific and mathematical documents.
LaTeX provides a powerful way to represent mathematical notation in documents, allowing users to create complex equations and formulas with ease.
Mathematical expressions are key to information sharing amongst engineers, scientists, data scientists, and mathematicians.
You can use the $ and $$ delimiters in GFM to insert math expressions in TeX and LaTeX style syntax.
OpenNote supports CommonMark and GitHub Flavored Markdown (GFM) syntax, as well as LaTeX math syntax.
This allows users to create richly formatted notes with support for headings, lists, links, emphasis, code blocks, tables, and mathematical expressions, and allows notes to be exported in various formats including TXT, MD (Markdown), and HTML.
Element | Syntax |
---|---|
Heading | # H1 ## H2 ### H3 |
Italic | _italic_ or *italic* |
Bold | **bold** |
Blockquote | > Blockquote |
Link | [title](https://www.example.com) |
Code | `code` |
Ordered List | 1. List item 1 2. List item 2 |
Unordered List | - Apple - Banana |
Image | ![alt text](image.jpeg) |
Element | Syntax |
---|---|
Strikethrough | ~~Strikethrough~~ |
Task List | - [x] Task 1 - [ ] Task 2 |
Heading ID | # Heading {#custom-id} |
Element | Syntax |
---|---|
Inline | $x^2$ |
Display | $$x^2$$ |
newline | \\ or \\\\ |
Whitespace | \quad or \ |
Superscript | x^2 |
Subscript | y_1 |
Expression | {x} |
Overline | \overline{x} |
Underline | \underline{x} |
Fraction | \frac{x}{y} |
Left Paren | \left( |
Right Paren | \right) |
Parentheses | \left(x+y\right) |
Brackets | \left[x+y\right] |
Braces | \left{x+y\right} |
Root | \sqrt[n]{x} |
× | \times |
÷ | \div |
± | \pm |
≠ | \neq |
≈ | \approx |
≤ | \leq |
≥ | \geq |
∞ | \infty |
∑ | \sum |
∏ | \prod |
∫ | \int |
∑ | \sum |
lim | \lim |
∀ | \forall |
∃ | \exists |
∴ | \therefore |
∵ | \because |
⊂ | \subset |
⊃ | \supset |
⊆ | \subseteq |
⊇ | \supseteq |
∈ | \in |
∉ | \notin |
Uppercase | Syntax | Lowercase | Syntax |
---|---|---|---|
A | A |
α | \alpha |
Β | B |
β | \beta |
Γ | \Gamma |
γ | \gamma |
Δ | \Delta |
δ | \delta |
Ε | E |
ε | \epsilon |
Ζ | Z |
ζ | \zeta |
Η | H |
η | \eta |
Θ | \Theta |
θ | \theta |
Ι | I |
ι | \iota |
Κ | K |
κ | \kappa |
Λ | \Lambda |
λ | \lambda |
Μ | M |
μ | \mu |
Ν | N |
ν | \nu |
Ξ | \Xi |
ξ | \xi |
Ο | O |
ο | \omicron |
Π | \Pi |
π | \pi |
Ρ | P |
ρ | \rho |
Σ | \Sigma |
σ | \sigma |
Τ | T |
τ | \tau |
Υ | \Upsilon |
υ | \upsilon |
Φ | \Phi |
φ | \phi |
Χ | X |
χ | \chi |
Ψ | \Psi |
ψ | \psi |
Ω | \Omega |
ω | \omega |
Element | Shortcut |
---|---|
Bold | Ctrl+B |
Italic | Ctrl+I |
Underline | Ctrl+U |
Strikethrough | Ctrl+D |
Mark | Ctrl+M |
Table | Ctrl+T |
Link | Ctrl+K |
Scan | Ctrl+S |
Preview | Ctrl+P |
Heading | Ctrl+1~6 |
Code | Ctrl+Shift+K |
Quote | Ctrl+Shift+Q |
Math | Ctrl+Shift+M |
Horizontal Rule | Ctrl+Shift+R |
Task | Ctrl+Shift+T |
Mermaid Diagram | Ctrl+Shift+D |
You can find more information about Markdown, CommonMark, GitHub Flavored Markdown, LaTeX Math, and Mermaid at the following links: