Pagic template docs

Markdown test

This page contains the features about markdown supported by Pagic.

GitHub flavored markdown§

The followed content is copied from https://guides.github.com/features/mastering-markdown/

Text§

It's very easy to make some words bold and other words italic with Markdown. You can even link to Google!

Lists§

Sometimes you want numbered lists:

  1. One
  2. Two
  3. Three

Sometimes you want bullet points:

  • Start a line with a star
  • Profit!

Alternatively,

  • Dashes work just as well
  • And if you have sub points, put two spaces before the dash or star:
    • Like this
    • And this

Images§

If you want to embed images, this is how you do it:

Image of Yaktocat

Headers§

Sometimes it's useful to have different levels of headings to structure your documents. Start lines with a # to create headings. Multiple ## in a row denote smaller heading sizes.

You can use one # all the way up to ###### six for different heading sizes.

Quotes§

If you'd like to quote someone, use the > character before the line:

Coffee. The finest organic suspension ever devised... I beat the Borg with it.

  • Captain Janeway

Code§

There are many different ways to style code with GitHub's markdown. If you have inline code blocks, wrap them in backticks: var example = true. If you've got a longer block of code, you can indent with four spaces:

if (isAwesome){
  return true
}

GitHub also supports something called code fencing, which allows for multiple lines without indentation:

if (isAwesome){
  return true
}

And if you'd like to use syntax highlighting, include the language:

if (isAwesome){
  return true
}

Highlight specific lines§

site/
|── dist    # Output directory
|   └── index.html├── pagic.config.ts
└── docs    # Source directory    └── README.md

Tables§

First Header Second Header
Content from cell 1 Content from cell 2
Content in the first column Content in the second column

Extras§

Pagic supports many extras in markdown.

TeX (KaTeX)§

Inline: E=mc2E=mc^2

Block:

1(ϕ5ϕ)e25π=1+e2π1+e4π1+e6π1+e8π1+\frac{1}{ \Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{ \frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} { 1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}}{1+\cdots}} } }