Any free and reliable app to display Markdown documents in macOS? [duplicate]
Sometimes we add a file readme.txt
in our folder for notes or things to know about.
Using Markdown, it is pretty easy to make it into a nicely formatted document. Can we write a README.md
and can use any free and reliable app and use the Mac to read it?
(So far I know Atom has a Markdown-preview which can be activated by using the keyboard shortcut Control + Shift + M, but if there is a one click preview app, it'd be the best. There is a Quick Look plug-in, but I am wondering if I should alter my OS? If there is a trustworthy app that can do it, it'd be best).
- Xcode : if you already use it.
-
Sublime text: https://www.sublimetext.com you can also install plugins suitable for you. It is much smaller than Xcode, doesn't exceed 100 MB, despite several packages.
Install packages using cmd+shift+p and then typing "install package". Then type the name of the package, it would show you the webpage of the developer where you can find the documentation.
- VSCode: with some extensions it can work.
There are a plenty of free and lightweight 3rd party apps for macOS which you can use to easily preview Markdown files. You can google for Markdown editors for macOS.
I use MacDown, a free and lightweight Markdown editor for macOS, which shows the raw markdown and the HTML render side-by-side. The Markdown render gets updated in realtime as you edit the raw Markdown file.
If you prefer using command-line, you can install the original Markdown Perl script via Homebrew by running the following command:
brew install markdown
Once installed, you can quickly generate the HTML render of a README.md file by running the following command:
markdown README.md > README.html
Which can be easily previewed in any Web browser.
P.S.: In-fact, you can have a workflow where you have the Markdown file open in any text editor, Terminal open with the current directory changed to the one where the Markdown file is saved, and the HTML file, once generated, loaded into a Web browser. Every time you edit and save the Markdown file, simply re-run the command-line above, and reload the HTML file in the Web browser.