markdown latex code example
Example 1: markdown in latex
% In your preamble
\usepackage[smartEllipses]{markdown}
% In the main body of your document
\markdownInput{example.md}
Example 2: markdown in latex
% In your preamble
\usepackage[hashEnumerators,smartEllipses]{markdown}
% In the main body of your document
Using inline markdown:
\begin{markdown}
An h1 header
============
Paragraphs are separated by a blank line.
2nd paragraph. *Italic*, **bold**, and `monospace`. Itemized lists
look like:
* this one
* that one
* the other one
> Block quotes are
> written like so.
>
> They can span multiple paragraphs,
> if you like.
An h2 header
------------
Here's a numbered list (use `hashEnumerators` option if you want to use hashes):
#. first item
#. second item
#. third item
\end{markdown}