All Projects → yusukebe → gh-markdown-preview

yusukebe / gh-markdown-preview

Licence: MIT license
GitHub CLI extension to preview Markdown looks like GitHub.

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to gh-markdown-preview

gh-ost
gh extension to meet ghost.
Stars: ✭ 65 (-62.64%)
Mutual labels:  gh-extension
gh-token
Create an installation access token for a GitHub app from your terminal 💻
Stars: ✭ 154 (-11.49%)
Mutual labels:  gh-extension
gh-poi
✨ Safely clean up your local branches
Stars: ✭ 35 (-79.89%)
Mutual labels:  gh-extension
gh-prs
gh cli extension to display a dashboard of PRs - configurable with a beautiful UI.
Stars: ✭ 443 (+154.6%)
Mutual labels:  gh-extension
gh-notify
GitHub CLI extension to display GitHub notifications
Stars: ✭ 66 (-62.07%)
Mutual labels:  gh-extension
gh-repo-explore
GitHub CLI extension to interactively explore a repo without cloning
Stars: ✭ 34 (-80.46%)
Mutual labels:  gh-extension
gh-f
🔎 the ultimate compact fzf gh extension
Stars: ✭ 97 (-44.25%)
Mutual labels:  gh-extension
gh-fuzzyclone
No description or website provided.
Stars: ✭ 24 (-86.21%)
Mutual labels:  gh-extension
resto
🔗 a CLI app can send pretty HTTP & API requests with TUI
Stars: ✭ 113 (-35.06%)
Mutual labels:  gh-extension
gh-grep
Print lines matching a pattern in repositories using GitHub API
Stars: ✭ 144 (-17.24%)
Mutual labels:  gh-extension

gh 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 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.
  • 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:

Screenshot of gh markdown-preview

Live reloading:

Screenshot of gh markdown-preview

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

Then access the local web server such as http://localhost:3333 with Chrome, Firefox, or Safari.

Available options:

    --dark-mode           Force dark mode
    --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

Author

Yusuke Wada http://github.com/yusukebe

License

Distributed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].