remote-markdown
v0.3.2
Published
View prettily markdown by an url or a github repo name.
Downloads
29
Readme
Remote markdown
View a online markdown file by url or github repo name prettily.
- Markdown to HTML (by marked)
- Syntax highlight. (by highlight.js)
- Enjoy better markdown syntax support, and pretty style online. Don't bother to download the markdown file manually.
- Table of contents.
- Automatically replace the url in the markdown file.
Install
npm i remote-markdown -g##Usage
Usage: rmd [url] [options]
Options:
-h, --help output usage information
-V, --version output the version number
-s, --style <style> Hightlight.js style class name, default is rainbow.
-p, --port <port> Port of the server, default is 8080.For example
rmd dracupid/npm-upAs you can see, your default browser is opened at 127.0.0.1:8080/dracupid/npm-up(assume that the port is default one), and the markdown file is prettily shown. From now on, you can just change the URL to view other markdown files, such as
127.0.0.1:8080/https://raw.githubusercontent.com/dracupid/npm-up/master/readme.md
127.0.0.1:8000/ysmood/nobone // a github repoOf course, you can use an url directly, especially the markdown file is not a github readme
rmd https://raw.githubusercontent.com/dracupid/npm-up/master/readme.mdLicense
MIT
