If you're coming from MD to HTML/CSS version, I'd recommend reviewing my CSS snippets for print from web tips, and it'll help with formatting and (more importantly) page breaks in your final PDF:
http://www.undr.com/understatement/2020/the_one_where_we_beg...