Md2Tex is a shell script to convert Markdown to Tex. This script outputs the result in stdout but it can be redirected with :
./md2tex.sh file.md > result.tex
# Title
## Subtitle
Text
### Subsubtitle
I am a
pretty
short
paragraph but
I have many lines
#### Sub3title
##### Sub4title
### I can contain special chars : élève à ë Ü
_Multiple words emph_
*emph*
**bold**
__bold__
Gives :
\section{Title}
\subsection{Subtitle}
Text
\subsubsection{Subsubtitle}
I am a
pretty
short
paragraph but
I have many lines
\paragraph{Sub3title}
\subparagraph{Sub4title}
\subsubsection{I can contain special chars : élève à ë Ü}
\emph{Multiple words emph}
\emph{emph}
\textbf{bold}
\textbf{bold}
Requires only the sed command.