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.

@import url('https://fonts.googleapis.com/css?family=Raleway');

body {
  background: #141414;
  color: #fff;
  font-family: raleway;
a, a:hover {
  color: #07c407;
  margin: 0;
  text-decoration: underline;   
.boxes {
  flex-direction: row;
.contents {
  width: 90%;
	padding: 20px;
	resize: vertical;
	overflow: auto;
	height: 400px;

.markdown-container {
  flex: 1;
.output-container {
   flex: 1;
.marked-text {
  padding: 0 25px 0 25px;
  background: #333333;
  box-shadow: 2px 2px 5px #000;
textarea {
  background: #333333;
  border: 0px;
  outline: none;
  box-shadow: 2px 2px 5px #000;
  color: #444;
  text-shadow: 1px 1px 1px #000;
  display: block;
              var Markdown = React.createClass({
  getInitialState: function(){
    return { text: "### Header\n-----\nGet a taste of this markdown. You can even list things:\n\n- Cool things\n- Fun things\n- Stupid things\n\nOr share [links](https://google.com)"
  changeText: function(event){
    this.setState({text: event.target.value});
  markedUp: function(){
    var newText = marked(this.state.text)
    return {
      __html: newText
  render: function() {
    return (
  <div className = "container">
        <h1 className="title">Markdown Previewer</h1>
       <div className = "boxes">   
        <div className="markdown-container">
          <h3 className="title">Input Text</h3>
      <textarea className ="contents" defaultValue={this.state.text} onChange={this.changeText}></textarea> 
     <div className ="output-container">
        <h3 className="title">Preview</h3>
       <div className = "contents marked-text" dangerouslySetInnerHTML={this.markedUp()}>
ReactDOM.render(<Markdown />, document.getElementById('app'));
Loading ..................