cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              #app {
  width: 900px;
  margin: 0 auto;

textarea {
  float: left;
  margin: 0 30px 30px 0;

              class MarkdownPreview extends React.Component {
  state = {
    textarea: ''

  componentWillMount() {
    this.setState({ textarea: 'Heading\n=======\n\n**[Visit my Revamped Markdown Editor](https://esausilva.github.io/live-markdown-editor/)**\n\nSub-heading\n-----------\n \n### Another deeper heading\n \nParagraphs are separated\nby a blank line.\n\nLeave 2 spaces at the end of a line to do a  \nline break\n\nText attributes *italic*, **bold**, \n`monospace`, ~~strikethrough~~ .\n\nShopping list:\n\n  * apples\n  * oranges\n  * pears\n\nNumbered list:\n\n  1. apples\n  2. oranges\n  3. pears\n\nThe rain---not the reign---in\nSpain.\n\n *[Esau Silva\'s blog](http://esausilva.com)*' })

  handleChange = (e) => {
    this.setState({ textarea: e.target.value })

  render() {
    return (
        <textarea rows="40" cols="50" onChange={this.handleChange}>{this.state.textarea}</textarea>
        <div dangerouslySetInnerHTML={{__html: marked(this.state.textarea)}} />

ReactDOM.render(<MarkdownPreview />, document.getElementById('app'));

Loading ..................