2 Documentation

Documentation

Follow this tutorial (opens in a new tab) for a quick introduction to Markdown.

Markup

Markdown (opens in a new tab) is a lightweight markup language for creating formatted text using a plain-text editor. Files written in Markdown are not locked to the applications used to create them, as it follows the file over app (opens in a new tab) philosophy.

Markdown can be used to author websites, reports, articles, notes, books, assignments,decks, slides; to write email messages; and for online discussions and documentation. It comes in multiple flavors, of which the most popular are:

  1. CommonMark (opens in a new tab): A strongly defined, highly compatible specification of Markdown.
  2. GFM (opens in a new tab): GitHub-Flavored Markdown, a superset of CommonMark, supported by GitHub and MDX (opens in a new tab).

Pandoc

Pandoc (opens in a new tab) is a swiss-army knife for markup languages. It can convert Markdown files to a large number of formats, including, but not limited to, LaTeX\LaTeX (opens in a new tab), HTML (opens in a new tab), PDF (opens in a new tab), ePUB (opens in a new tab), AsciiDoc (opens in a new tab), reStructuredText (opens in a new tab), OpenDocument (opens in a new tab), and OOXML (opens in a new tab).

Pages

sudo dnf install pandoc
pandoc page.md -t html -o page.html

Documents

sudo dnf install pandoc-pdf
pandoc doc.md -t pdf -o doc.pdf
pandoc doc.md -t latex --include-in-header preamble.tex --pdf-engine=lualatex -o doc.pdf
pandoc doc.md -t docx -o doc.docx
pandoc doc.md -t docx --reference-doc=template.docx -o doc.docx

Slides

pandoc deck.md -s -t revealjs -o deck.html
pandoc deck.md -t beamer -o deck.pdf
pandoc deck.md -t pptx -o deck.pptx
pandoc deck.md -t pptx --reference-doc=template.pptx -o deck.pptx

Mermaid

Mermaid (opens in a new tab) code blocks can be used to embed different types of diagrams. Here is an example of a state diagram:

```mermaid
stateDiagram-v2
direction LR
  [*] --> Still
  Still --> [*]
  Still --> Moving
  Moving --> Still
  Moving --> Crash
  Crash --> [*]
```

Editors

Generators

Hosting

Resources