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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

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.

              <div class="navbar navbar-static-top navbar-inverse">
  <div class="navbar-brand">Markdown Previewer</div>

<div class="container">
  <div id="content">
              $primary-color: #333

    background-color: $primary-color  

    color: #fff
    font-weight: bold
    font-family: 'Raleway', sans-serif
      height: 500px
      margin-bottom: 20px
              var App = React.createClass({
        rawMarkup: function(x) {
          var rawMarkup = marked(x.toString(), {sanitize: true});
          return { __html: rawMarkup };
				getInitialState: function() {
					return {message: 'Heading\n=======\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\nHobbies:\n\n  * Programming\n  * Gaming\n\nFramework Used list:\n\n  1. ReactJs\n  2. Sass\n\nThe rain---not the reign---in\nSpain.\n\n *[Adegbuyi Ademola](https://freecodecamp.com/marhyorh)*'};
				handleChange: function(event) {
					this.setState({message: event.target.value});
				render: function() {
				var message = this.state.message;
					return (
							<div className="col-xs-6">
								<textarea type="text" className="form-control" onChange={this.handleChange} defaultValue={message}></textarea>
							<div className="col-xs-6" dangerouslySetInnerHTML={this.rawMarkup(message)}>
			React.render(<App />, document.getElementById('content'));
Loading ..................