This project is part of the FreeCodeCamp Front End Development Libraries Certification. It's a Markdown Previewer that allows users to input Markdown text and see the rendered HTML output in real-time.
- Real-time Markdown to HTML conversion
- Support for GitHub Flavored Markdown
This project fulfills the following user stories:
- I can see a
textarea
element with a correspondingid="editor"
. - I can see an element with a corresponding
id="preview"
. - When I enter text into the
#editor
element, the#preview
element is updated as I type to display the content of the textarea. - When I enter GitHub flavored markdown into the
#editor
element, the text is rendered as HTML in the#preview
element as I type. - 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. - When my markdown previewer first loads, the default markdown in the
#editor
field should be rendered as HTML in the#preview
element.
- HTML
- CSS
- JavaScript
- React
- Marked.js library for Markdown parsing
- Clone this repository to your local machine.
- Open
index.html
in your web browser. - Start typing or pasting Markdown content into the editor on the left.
- See the rendered HTML output in the preview pane on the right.
- Add a toolbar for common Markdown formatting options
- Implement a dark mode toggle
- Add the ability to save and load Markdown files
This project was completed as part of the FreeCodeCamp Front End Development Libraries Certification.
This project is open source and available under the MIT License.