https://github.com/ttys3/md2html
md2html: golang based markdown to HTML tool with code syntax highlight support. GFM and CommonMark supported
https://github.com/ttys3/md2html
Last synced: over 1 year ago
JSON representation
md2html: golang based markdown to HTML tool with code syntax highlight support. GFM and CommonMark supported
- Host: GitHub
- URL: https://github.com/ttys3/md2html
- Owner: ttys3
- Created: 2020-03-22T16:59:15.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-07-15T08:47:32.000Z (almost 5 years ago)
- Last Synced: 2025-02-10T08:32:36.819Z (over 1 year ago)
- Language: CSS
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Markdown to HTML cli tool
## usage
If you have Go installed, install with:
go get -u github.com/ttys3/md2html
To run:
md2html [options] inputfile [outputfile]
or
cat inputfile | md2html [options]
Run `md2html -h` to see all options.
style preview: https://xyproto.github.io/splash/docs/
available styles:
```
abap
algol
algol_nu
api
arduino
autumn
borland
bw
colorful
dracula
emacs
friendly
fruity
github
igor
lovelace
manni
monokai
monokailight
murphy
native
paraiso-dark
paraiso-light
pastie
perldoc
pygments
rainbow_dash
rrt
solarized-dark
solarized-dark256
solarized-light
swapoff
tango
trac
vim
vs
xcode
```
## thanks
[yuin/goldmark](https://github.com/yuin/goldmark) library
[alecthomas/chroma](https://github.com/alecthomas/chroma) library
this project is inspired by [mdtohtml](https://github.com/gomarkdown/mdtohtml)