Skip to Content
Use GitHub Copilot to Build a Markdown Editor
shortcut

Use GitHub Copilot to Build a Markdown Editor

by Rizel Scarlett
November 2023
Beginner
5 pages
6m
English
O'Reilly Media, Inc.
Content preview from Use GitHub Copilot to Build a Markdown Editor

Use GitHub Copilot to Build a Markdown Editor

Prerequisites

Now that we have everything we need, let’s get started!

Step 1: Create a Next.js GitHub Codespace Template

I use GitHub Codespace templates when I want to avoid installing boilerplate package dependencies and setting up my environment from scratch. It comes in handy when I want to spin up a quick proof of concept or deliver a demo. In our case, we want to save time installing Next.js and its accompanying dependencies.

You can create a Next.js GitHub Codespace template by navigating to https://github.com/codespaces/templates. Then, choose the “Use this template” button for Next.js. This will trigger a codespace to open with boilerplate Next.js code with a browser preview.

Highlights the use this template button for Nextjs
Figure 0.

Step 2: Install Specific Dependencies

Using a GitHub Codespace template reduced the need to install a few boilerplate dependencies, but we still have more to install.

  • Ensure the GitHub Copilot extension is installed. See here for instructions.

  • Install the React Markdown npm package. To do this, run the following command in your codespace’s terminal:

    npm install react-markdown
  • Install the styled-components npm package. To do this, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Use GitHub Copilot Chat to Better Understand Generated Code

Use GitHub Copilot Chat to Better Understand Generated Code

Rizel Scarlett

Publisher Resources

ISBN: 9781098164812