7. Markdown Examples

7.2. 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.

7.3. Equations

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

7.4. Bibtex, cite

Hindenlang [@Hindenlang2015]. Only works with pandoc!

[bibshow file=https://www.flexi-project.org/wp-content/uploads/2016/07/userguide-1.bib]

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

7.5. section references

7.6. Figures, caption

This is the captionabel{mylabel}

See figure \ref{mylabel}.

../_images/HOPR.png

Fig. 7.1 This is an example caption.

See Fig. 7.1.

7.7. tables

7.8. unnumbered section headings

just add

{-}

after the heading

7.9. Code blocks for various languages

int a = 32;
int a = 32;