Okular has a Markdown backend, which allows it to display Markdown-formated text. On Debian-based systems (like Ubuntu) you might have to install the okular-extra-backends package to use it.
The nice thing about Okular is that it is just a plain viewer. You can use your text editor of choice, and as soon as you save the Markdown document, Okular reloads the ...
There is also an amazing one here on GitHub appropriately named Glow... It's absolutely lightweight. You don't even need to leave the terminal. Works on Linux, Mac and Windows.
Here's a simple markdown text I created quickly to view with Glow. It only consists of an ordinary(non-marked-down) line of text, an H1 header, a horizontal rule, a block quote line, ...
I was looking for something similar, and since I could not find it, I wrote a small python script following the principles outlined by rd_nielsen.
You can call it like this:
python3 pandoc-merge.py --csv addresses.csv -o merged_letter.pdf letter_template.md
In your template, you can ...
You should also take a look at Sphinx
it is phython-based, and runs on multiple platforms (Windows, Unix, MacOS, Docker)
Output formats: HTML (including Windows HTML Help), LaTeX (for printable PDF versions), ePub, Texinfo, manual pages, plain text
Extensive cross-references: semantic markup and automatic links for functions, classes, citations,...
You might want to try
display simultaneously file tree and editor area (and be able to switch between files); CHECK
support markdown format (highlight markdown format and display formatted preview); CHECK
(nice to have) be able to display TOC generated from markdown headers in file; CHECK
be open source and work under Linux. CHECK
Why not trying https://github.com/JPro-one/markdown-javafx-renderer? It is based on flexmark-java.
Example application: https://github.com/jpro-one/markdown-javafx-renderer/blob/master/example/src/main/java/com/sandec/mdfx/ExampleMDFX.java
MDFXNode mdfx = new MDFXNode("your-markdown");
I found this one quite handy. It is a ruby gem, that allows CLI viewing of Markdown files.
if you are using Ubuntu:
sudo apt install ruby
sudo gem install mdless