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.

+ add another resource


Babel includes JSX processing.

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.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


    <script src=""></script>
    <div id='markdown-app'></div>  


                $font-stack: monospace, arial, sans-serif

  height: 100%
  width: 100%
  overflow-y: scroll
  overflow-x: hidden
  color: white
  background-color: rgb(4, 58, 81)
  text-align: center
    height: 33em
    background-color: rgba(4, 58, 81, 0.5)
    @extend .right      

  padding: 20px
  font: 120% $font-stack
  height: 18em

    margin: 10px

  .form-control, #markdownInput, #markdownOutput
    @extend .form-group
    margin: 0px auto
    overflow-y: scroll
    word-wrap: break-word
    color: black
    background-color: gainsboro
  -webkit-border-radius: $radius
  -moz-border-radius: $radius
  -ms-border-radius: $radius
  border-radius: $radius



                class MarkdownForm extends React.Component {
  constructor() {
    this.state = {
      value: ""
  _rawMarkup() {
    var rawMarkup = marked(this.state.value, {sanitize: true});
    return {__html:rawMarkup};
  _handleChange(e) {
    var element = $('.left .form-group');
    var isScrolledToBottom = element.scrollHeight - element.clientHeight <= element.scrollTop + 1;
    if(isScrolledToBottom) {
      element.scrollTop = element.scrollHeight - element.clientHeight;
  render() {
      <div className="row">
        <div className="col-sm-6 right">
          <div className="form-group">
            <label>Type Markdown Here:</label>
            <textarea id="markdownInput" className="form-control" value={this.state.value} onChange={this._handleChange.bind(this)}></textarea>
        <div className="col-sm-6 left">
          <div className="form-group">
            <label>Output Preview:</label>
            <output class="form-control" id="markdownOutput" dangerouslySetInnerHTML = {this._rawMarkup(this.state.value)}></output>

ReactDOM.render(<MarkdownForm />, document.getElementById('markdown-app'));

class TimeDisplay extends React.Component {
  render() {
    const now = new Date();
    return (
        <p className="lead">Current Time: {now.toTimeString()}</p>