ilkyazar / markdown-previewer

Markdown Previewer using React - freeCodeCamp challenge

Home Page:https://codepen.io/ilkyazar/full/RwLZzJr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build a Markdown Previewer

Live Demo:

https://codepen.io/ilkyazar/full/RwLZzJr


Challenge Instructions:

User Story #1: I can see a textarea element with a corresponding id="editor".

User Story #2: I can see an element with a corresponding id="preview".

User Story #3: When I enter text into the #editor element, the #preview element is updated as I type to display the content of the textarea.

User Story #4: When I enter GitHub flavored markdown into the #editor element, the text is rendered as HTML in the #preview element as I type (HINT: You don't need to parse Markdown yourself - you can import the Marked library for this: https://cdnjs.com/libraries/marked).

User Story #5: When my markdown previewer first loads, the default text in the #editor field should contain valid markdown that represents at least one of each of the following elements: a heading element (H1 size), a sub heading element (H2 size), a link, inline code, a code block, a list item, a blockquote, an image, and bolded text.

User Story #6: When my markdown previewer first loads, the default markdown in the #editor field should be rendered as HTML in the #preview element.

Optional Bonus (you do not need to make this test pass): My markdown previewer interprets carriage returns and renders them as br (line break) elements.


Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

About

Markdown Previewer using React - freeCodeCamp challenge

https://codepen.io/ilkyazar/full/RwLZzJr


Languages

Language:JavaScript 60.1%Language:HTML 25.2%Language:SCSS 9.4%Language:CSS 5.4%