Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.39 KB

examples.md

File metadata and controls

74 lines (52 loc) · 1.39 KB

Markdown Examples

hyperlinks

one with a title. Unclear how to enforce new window.

Code environment

Either use fenced style (tildes)

if (a > 3) {
  moveShip(5 * gravity, DOWN);
}

or indented style (4 whitespaces)

if (a > 3) {
  moveShip(5 * gravity, DOWN);
}

Both works with pandoc and wordpress. Also see pandoc verbatim code.

Equations

(@gleichung1) $$a=b*c$$ As (@gleichung1) shows, blabla.

Bibtex, cite

Hindenlang [@Hindenlang2015]. Only works with pandoc!

[bibshow file=references.bib]

Hindenlang [bibcite key=Hindenlang2015], Gassner [bibcite key=gassner2011disp]

section references

Figures, caption

---
name: fig:mylabel
width: 400px
align: center
---

This is an example caption.

See {numref}fig:mylabel for an image from the web embedded in this documentation.

---
name: fig:example
width: 200px
align: center
---

This is an example caption.

See {numref}fig:example for embedding a local file.

tables

unnumbered section headings

just add

{-}

after the heading

Code blocks for various languages


int a = 32;
int a = 32;