Pandoc MD to PDF, full-sized horizontal rule

I am using pandoc (on windows with miktex)

with markdown I create a horizontal rule, save this as my source.md

---

(or even the hr tag)

but when I convert to PDF, the horizontal rule is a small small line in the middle of the page centered.

How do I create it from margin to margin, how does this happen when converting it to HTML?

Edit:

I tried a CSS-style DIV tag that creates a rule but is completely ignored during PDF output.

+4
source share
2 answers

LaTeX \begin{center}\rule{3in}{0.4pt}\end{center} pandoc -t latex. \rule Pandoc.

, ConTeXt LaTeX :

$ pandoc --standalone -t context -o out.tex input.md
$ context out.tex
+2

, \rule LaTeX, :

\let\OldRule\rule
\renewcommand{\rule}[2]{\OldRule{\linewidth}{#2}}
0

All Articles