greadmerm v1.0.3
greadmerm
Locally preview your markdown, Github style.
Installation
via npm:
$ npm install -g greadmermUsage
$ greadmerm [path/to/some.markdown]
view your markdown at http://localhost:8124/
press CTRL+C to quitExecute greadmerm passing an optional path to a markdown file and it will be parsed and served from a locally running
http server with Github styling applied. When no file path is specified, greadmerm displays a file browser of the
current directory, similar to Github.
A browser will automatically be opened to preview the markdown if your OS supports it.
Files with the following extensions are rendered.
- .md
- .markdown
The default port is 8124 and the default host is localhost. You can change these settings by passing the --port
and --host option. For example:
$ greadmerm --host 127.0.0.0 --port 7220Notes
Styling
An attempt is made to use the Github markdown rendering api and Githubs stylesheets. If the attempt fails we fall back to rendering locally.
Mermaid diagrams
Mermaid diagrams are also available.
flowchart LR
greadmerm -- depends --> mermaid[mermaid-cli]
mermaid -- depends --> puppeteerflowchart LR
greadmerm -- depends --> mermaid[mermaid-cli]
mermaid -- depends --> puppeteerAcknowledgment
This repository is forked from https://github.com/aheckmann/greadme .
License
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago