Markdown notes within tex document chapter

  • I never used the markdown package before: There may be a better explanation.
  • The package seems to be interesting, especially considering the authors (e. g. Hans Hagen who is the author of ConTeXt).
  • You use ## within markdown which is apparently a 2nd-level heading.
  • This is like a \section command and therefore you get 1.1 Test.
  • --> The solution is to not use a markdown heading command (like ##) if you don't want a new heading :).

Remark 1: I had to run the code using the -shell-escape compile option. Otherwise I got a corresponding error message.

Remark 2: The original question used ## (2nd-level heading) later the code in the question was changed to #.

Your Code (incl. ##)

%% pdflatex -shell-escape %.tex 

\documentclass{report}
\usepackage[hybrid]{markdown} % [hybrid] is not relevant in this example.
\begin{document}
\chapter{Introduction} 

I want this to be in Chapter 1

\begin{markdown}
## Test
**bold**
\end{markdown}

I want this to be in Chapter 1 too
\end{document}

enter image description here

My Code (excl. ##)

%% pdflatex -shell-escape %.tex 

\documentclass{report}
\usepackage[hybrid]{markdown} % [hybrid] is not relevant in this example.
\begin{document}
\chapter{Introduction} 

I want this to be in Chapter 1

\begin{markdown}
**bold**
\end{markdown}

I want this to be in Chapter 1 too
\end{document}

enter image description here