Skip to content

Instantly share code, notes, and snippets.

@MuhammadMinhaj
Last active March 30, 2021 15:55
Show Gist options
  • Select an option

  • Save MuhammadMinhaj/d07eb9580c616773913fab6acc0d9277 to your computer and use it in GitHub Desktop.

Select an option

Save MuhammadMinhaj/d07eb9580c616773913fab6acc0d9277 to your computer and use it in GitHub Desktop.
Testing purpose

Live demo

Changes are automatically rendered as you type.

  • Implements GitHub Flavored Markdown
  • Renders actual, "native" React DOM elements
  • Allows you to escape or skip HTML (try toggling the checkboxes above)
  • If you escape or skip the HTML, no dangerouslySetInnerHTML is used! Yay!

Table of Contents

HTML block below

This blockquote will change based on the HTML settings above.

How about some code?

var React = require('react');
var Markdown = require('react-markdown');

React.render(
  <Markdown source="# Your markdown here" />,
  document.getElementById('content')
);

Pretty neat, eh?

Tables?

Use remark-gfm to support tables, strikethrough, tasklists, and literal URLs. These features do not work by default.

Feature Support
tables remark-gfm

strikethrough

  • task list

https://example.com

More info?

Read usage information and more on GitHub


A component by Espen Hovlandsdal

Testing Demo

Changes are automatically rendered as you type.

  • Implements GitHub Flavored Markdown
  • Renders actual, "native" React DOM elements
  • Allows you to escape or skip HTML (try toggling the checkboxes above)
  • If you escape or skip the HTML, no dangerouslySetInnerHTML is used! Yay!

Table of Contents

HTML block below

This blockquote will change based on the HTML settings above.

How about some code?

var React = require('react');
var Markdown = require('react-markdown');

React.render(
  <Markdown source="# Your markdown here" />,
  document.getElementById('content')
);

Pretty neat, eh?

Tables?

Use remark-gfm to support tables, strikethrough, tasklists, and literal URLs. These features do not work by default.

Feature Support
tables remark-gfm

strikethrough

  • task list

https://example.com

More info?

Read usage information and more on GitHub


A component by Espen Hovlandsdal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment