Using sublime text build system.
Very useful to write small reports, usually less than 20 pages. It behaves just as you expect.
You must have sublime text already installed. Then:
sudo apt install texlive pandoc
Clone the repo:
git clone https://github.com/raphaelcasimir/markdown-to-pdf.git
Then modify the Markdown to PDF.sublime-build
file so the path to the default.latex
matches the actual path of the file (included in this repo, so you cloned it).
Then copy Markdown to PDF.sublime-build
to your sublime packages folder:
cp Markdown\ to\ PDF.sublime-build ~/.config/sublime-text-3/Packages
Set your document's syntax to markdown: CTRL+SHIFT+P and ssm
(set syntax markdown).
Use CTRL+B to build your markdown document. A PDF file will be generated at your document's location and evince (you can change that in the .sublime-build file) will show it.
Hit this shortcut each time you want to see a render of your work.