yusukebe/gh-markdown-preview
소개
GitHub과 같은 형태로 Markdown을 미리 볼 수 있는 GitHub CLI 확장입니다.
개발 도구What you can do
- No-dependencies - You need gh command only.
- Zero-configuration - You don't have to set the GitHub access token.
- Looks exactly the same - You can see same as GitHub.
- Live reloading - You don't need reload the browser.
측정된 스타 증가
- in 24h
- +3
- in 7 days
- +3
- in 15 days
- +7
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalgh markdown-preview
GitHub CLI extension to preview Markdown looks like GitHub :octocat:
gh markdown-preview is a GitHub CLI extension to preview your markdown such as README.md. The gh markdown-preview command start a local web server to serve the markdown document. gh markdown-preview renders the HTML got from GitHub official markdown API and uses the CSS extracted from GitHub web site. The styles are almost the same!
You can see rendered README before uploading to GitHub!
Features
- No-dependencies - You need
ghcommand only. - Zero-configuration - You don't have to set the GitHub access token.
- Looks exactly the same - You can see same as GitHub.
- Live reloading - You don't need reload the browser.
- Auto open browser - Your browser will be opened automatically.
- Auto find port - You don't need find an available port if default is used.
Screenshots
Open your browser:

Live reloading:

Installation
gh extension install yusukebe/gh-markdown-preview
Upgrade:
gh extension upgrade markdown-preview
Usage
The usage:
gh markdown-preview README.md
Or this command will detect README file in the directory automatically.
gh markdown-preview
You can also preview Markdown from stdin by piping or using -:
echo "# Hello" | gh markdown-preview
cat README.md | gh markdown-preview
gh markdown-preview - < README.md
Then access the local web server such as http://localhost:3333 with Chrome, Firefox, or Safari.
Available options:
--dark-mode Force dark mode
--markdown-mode Force "markdown" mode (rather than default "gfm")
--disable-auto-open Disable auto opening your browser
--disable-reload Disable live reloading
-h, --help help for gh-markdown-preview
--host string Hostname this server will bind (default "localhost")
--light-mode Force light mode
-p, --port int TCP port number of this server (default 3333)
--verbose Show verbose output
--version Show the version
Related projects
- GitHub CLI https://cli.github.com
- Grip https://github.com/joeyespo/grip
- github-markdown-css https://github.com/sindresorhus/github-markdown-css
Author
Yusuke Wada http://github.com/yusukebe
License
Distributed under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…