<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yusuke Wada</title>
    <description>The latest articles on DEV Community by Yusuke Wada (@yusukebe).</description>
    <link>https://dev.to/yusukebe</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F700784%2F79ccbb26-6437-4e4c-94a6-0643856c8e20.jpeg</url>
      <title>DEV Community: Yusuke Wada</title>
      <link>https://dev.to/yusukebe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yusukebe"/>
    <language>en</language>
    <item>
      <title>GitHub CLI extension to preview README.md</title>
      <dc:creator>Yusuke Wada</dc:creator>
      <pubDate>Tue, 26 Oct 2021 18:27:51 +0000</pubDate>
      <link>https://dev.to/yusukebe/github-cli-extension-to-preview-readmemd-4icc</link>
      <guid>https://dev.to/yusukebe/github-cli-extension-to-preview-readmemd-4icc</guid>
      <description>&lt;p&gt;Have you ever thought want to preview README.md before push to GitHub? I built the &lt;a href="https://cli.github.com"&gt;GitHub CLI&lt;/a&gt; extension to make it come true. It named &lt;code&gt;gh-markdown-preview&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yusukebe/gh-markdown-preview"&gt;https://github.com/yusukebe/gh-markdown-preview&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NO-dependencies&lt;/strong&gt; - You need &lt;code&gt;gh&lt;/code&gt; command only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-configuration&lt;/strong&gt; - You don't have to set the GitHub access token.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Looks exactly&lt;/strong&gt; the same - You can see same as GitHub.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live reloading&lt;/strong&gt; - You don't need reload the browser.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;p&gt;You have to install GitHub CLI before install.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ brew install gh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ gh extension install yusukebe/gh-markdown-preview
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ gh markdown-preview README.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or this command will detect README file in the directory automatically.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ gh markdown-preview
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SZJXayuz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/83zpvubioa4hee4r2i2f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SZJXayuz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/83zpvubioa4hee4r2i2f.png" alt="Screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then access the local web server such as &lt;a href="http://localhost:3333"&gt;http://localhost:3333&lt;/a&gt; with Chrome, Firefox, or Safari.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--m5og2Y33--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/79jo7cenpt6h481uhdni.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--m5og2Y33--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/79jo7cenpt6h481uhdni.png" alt="Screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Available Options:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;-p, --port     TCP port number of this server (default: 3333)
-r, --reload   Enable live reloading (default: false)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;code&gt;gh markdown-preview&lt;/code&gt; is a GitHub CLI extension to preview your markdown such as README.md. The &lt;code&gt;gh markdown-preview&lt;/code&gt; commnad start a local web server to serve your markdown document file with a GitHub style.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;gh markdown-preview&lt;/code&gt; command shows the HTML got from GitHub official markdown API with the CSS extracted from GitHub web site. The styles are almost the same!&lt;/p&gt;

&lt;p&gt;You can see rendered README before uploading to GitHub!&lt;/p&gt;

&lt;p&gt;If you want to have more information, check this repository and give me a star:)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yusukebe/gh-markdown-preview"&gt;yusukebe/gh-markdown-preview: GitHub CLI extension to preview README looks the same as GitHub.&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>go</category>
      <category>cli</category>
      <category>markdown</category>
    </item>
  </channel>
</rss>
