Skip to content

Romugar/Markdown_Previewer_React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front End Libraries Projects: A Markdown Previewer for freecodecamp.org

Build a Markdown Previewer with React

Try it on Codepen: https://codepen.io/Romugar/pen/ZMqBXz

Objective

Build a CodePen.io app that is functionally similar to this: https://codepen.io/freeCodeCamp/full/GrZVVO.

Fulfill the below user stories and get all of the tests to pass. Give it your own personal style. You can use any mix of HTML, JavaScript, CSS, Bootstrap, SASS, React, Redux, and jQuery to complete this project. You should use a frontend framework (like React for example).

  1. User Story: I can see a textarea element with a corresponding id="editor".
  2. User Story: I can see an element with a corresponding id="preview".
  3. User Story: When I enter text into the #editor element, the #preview element is updated as I type to display the content of the textarea.
  4. User Story: 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).
  5. User Story: 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 header (H1 size), a sub header (H2 size), a link, inline code, a code block, a list item, a blockquote, an image, and bolded text.
  6. User Story: When my markdown previewer first loads, the default markdown in the #editor field should be rendered as HTML in the #preview element.
  7. Optional Bonus (you do not need to make this test pass): When I click a link rendered by my markdown previewer, the link is opened up in a new tab (HINT: read the Marked.js docs for this one!).
  8. 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.

About

A simple markdown previewer in React and Marked library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors