markdown to html

# downloading the css file
curl -O http://b.enjam.info/panam/styling.css

# converting the markdown file to a standalone html
pandoc --css=styling.css -s -f markdown+smart --toc --metadata title="title" --to=html5 input.md -o output.html

markdown to pdf

pandoc --pdf-engine=xelatex -V CJKmainfont="Noto Sans CJK JP" -V geometry:margin=0.5in -V fontsize=12pt input.md -o output.pdf