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 ng-app="markdownApp" ng-controller="markdownController">
  <h5 style="text-align: right"><a target="_blank" href="https://youtu.be/oO4WPfTkuNk">Video Tutorial</a></h5>
    <textarea ng-model="input" placeholder="Enter Markdown text here" autofocus="true"></textarea>
    <div ng-cloak ng-if="input.length > 0">
        <!-- the "|" is a finter I am going to use in javascript -->
        <div ng-bind-html="input | markdown" class="preview"></div>
  <div class="text-center" id="footer"> <!-- for footer -->
      <div class="col-xs-6">
      <h5><a href="http://www.eleftheriabatsou.com" target="_blank">Eleftheria</a> | <a href="https://codepen.io/EleftheriaBatsou" target="_blank">Projects</a> | <a href="https://www.youtube.com/channel/UCC-WwYv3DEW7Nkm_IP6VeQQ" target="_blank"> Coding videos </a></h5>
      <!-- social media -->
      <div class="col-xs-6 text-primary">
        <a href="https://twitter.com/BatsouElef" target="_blank">
     <img src="https://left.gr/sites/all/themes/newleft/images/socialicons/twitter.png" 
      style="text-align:center" alt="twitter"> 
         <a href="https://github.com/EleftheriaBatsou" target="_blank">
     <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSqSttU57LZvtB2Y77j2E2EkC6qgiTbYjVK75XU2SOzUXz2EFjX" 
      style="text-align:center" alt="github"> 
        <a href="https://www.youtube.com/channel/UCC-WwYv3DEW7Nkm_IP6VeQQ" target="_blank">
     <img id="footerSvg" src="https://image.flaticon.com/icons/svg/25/25312.svg" 
       style="text-align:center" alt="youtube"> 
    </div> <!-- end footer -->

              $lightGrey: #D9DACD;

body {
  background-color: $lightGrey;
  padding: 1em;
  font-family: "Helvetica Neue";

textarea {
  width: 100%;
  height: 15em;
  padding: 0.5em;

.preview {
   background: white;
   padding: 0.5em;

a:link    {color:orangered;  text-decoration:none}
a:visited {color:orangered; text-decoration:none}
a:hover   {color:red; text-decoration:underline} 

  width: 32px;
              angular.module('markdownApp', ['ngSanitize'])

.controller('markdownController', function($scope) {
    $scope.input = 'Enter your Markdown.' +
        '\n' +
        '\n- *first*' +
        '\n- **second**' +
        '\n- third' +
        '\n' +
        '\n Text attributes *italic*, **bold**, `monospace`';

.filter('markdown', function() {
    var converter = new Showdown.converter();
    return converter.makeHtml;

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