A fast and secure Markdown to HTML rendering tool built with Go. Uses gomarkdown/markdown for parsing and bluemonday for secure HTML sanitization.
- 🚀 Fast Markdown to HTML conversion
- 🔒 Secure HTML output with sanitization
- 📦 Standalone binary - no dependencies needed
- 🌍 Cross-platform support (Windows, Linux, macOS)
showmd input.md
md show on http://localhost:4000- Visit the Releases page
- Download the latest release for your operating system
Download the appropriate file for your system:
| OS | Architecture | File |
|---|---|---|
| Windows | amd64 | showmd_windows_amd64.exe |
| Linux | arm64 | showmd_linux_arm64 |
| macOS | arm64 | showmd_darwin_arm64 |
Rename the downloaded file to just showmd for consistency.
rename showmd_windows_amd64.exe showmd.exemv showmd_linux_arm64 showmd
# or
mv showmd_darwin_arm64 showmdchmod +x showmd-
Move
showmd.exeto a permanent location, e.g.C:\Program Files\showmd\ -
Add that folder to your system PATH:
-
Press Win + S, search Environment Variables
-
Click Edit the system environment variables
-
Click Environment Variables…
-
Under System variables, select Path → Edit → New
-
Add the path:
C:\Program Files\showmd -
Click OK to save everything.
-
Move showmd to /usr/local/bin (or any PATH directory):
sudo mv showmd /usr/local/bin/Run:
showmd --versionIf it prints version info or help text, it's installed correctly.
- Go 1.24.3 or later
- Node.js with pnpm (v10.12.2+)
# Clone the repository
git clone <repository-url>
cd go-markdown-render
# Install Node.js dependencies
pnpm install
# Build the binary
node build.mjsThe compiled binary will be available in the output directory.
# Convert markdown from stdin
echo "**Bold text** and *italic*" | showmd# Convert a markdown file
showmd README.md
# Save to HTML file
showmd README.md > README.html# Convert curl output
curl https://raw.githubusercontent.com/user/repo/main/README.md | showmd- Language: Go 1.24.3
- Markdown Parser: gomarkdown/markdown
- HTML Sanitizer: bluemonday
- Build System: Node.js with zx and execa
See LICENSE file for details.