Quire

How to preview a README before pushing it to GitHub

Short answer: only GitHub renders exactly like GitHub. The closest local preview is a tool that sends your file to GitHub’s own Markdown API, such as the gh markdown-preview extension for the GitHub CLI.

For a quick read of structure, tables and code, VS Code’s built-in preview or a viewer extension is enough. Then glance at the pushed page for the GitHub-only parts.

Updated 15 October 2026. Tool details follow each project’s own documentation.

What a local preview can get wrong

GitHub adds things that general Markdown renderers don’t know about:

Option 1: GitHub’s renderer, on your machine

The gh-markdown-preview extension renders the HTML returned by GitHub’s Markdown API and styles it with CSS taken from github.com. Its author describes the result as “almost the same” as GitHub.

  1. Install the extension

    With the GitHub CLI installed, run gh extension install yusukebe/gh-markdown-preview.

  2. Start the preview

    In the repository folder, run gh markdown-preview. With no file name it looks for the README in the current directory. It serves the page at localhost:3333.

  3. Edit and watch

    Keep the browser tab open while you edit. Live reload is on by default, so saved changes appear without refreshing.

  4. Check the result on GitHub

    After pushing, open the repository page once to confirm images, relative links and anything GitHub-specific.

Because rendering happens on GitHub’s servers, you need a connection, and your README’s text is sent to GitHub. Grip (pip install grip, then grip, served at localhost:6419) works the same way and may hit GitHub’s hourly API limit unless you give it credentials.

Option 2: the Preview tab on github.com

For a small fix you can skip the local preview. On github.com, open the file, click the pencil icon, make your change and click Preview above the text. Nothing is saved until you click Commit changes. This is GitHub’s real renderer, but you edit in the browser rather than in your own editor.

Option 3: VS Code’s preview

Open the README in VS Code and press Ctrl+K then V (⌘K V on a Mac) for a preview beside the source that updates as you type. It works offline and draws Mermaid diagrams and math. It is VS Code’s renderer, not GitHub’s, so check alerts and relative links on GitHub afterwards.

Option 4: read it in Chrome with Quire Markdown

Quire Markdown is our extension, free on the Chrome Web Store. Choose Open file and pick the README, then turn on Follow file: the rendered page updates each time you save. The heading outline shows at a glance whether your sections are in the order you meant, and tables, task lists and highlighted code look finished.

Quire Markdown in the dark theme with the rendered page and Markdown source side by side
Split view in the dark theme: the rendered page beside the Markdown source.

It is a reader, so it deliberately skips some of what GitHub does:

Questions

Does GitHub have a preview button for README files?

Yes, when you edit a file on github.com. The Preview tab sits above the text box. There is no preview for a file that only exists on your computer, which is why local tools exist.

Will VS Code’s preview match GitHub exactly?

Not exactly. Headings, lists, tables and code look much the same, but GitHub-only features such as alerts and branch-aware relative links may not.

More guides

All guides · Quire homepage