Sha256: 0a7dfd91874440d72fdc1dad9ea2811f57dbdbcd20fad25ce7feffd09936b159

Contents?: true

Size: 428 Bytes

Versions: 8

Compression:

Stored size: 428 Bytes

Contents

'use strict';

angular.module('markdown', [])
  .provider('markdown', [function () {
    var opts = {};
    return {
      config: function (newOpts) {
        opts = newOpts;
      },
      $get: function () {
        return new window.Showdown.converter(opts);
      }
    };
  }])
  .filter('markdown', ['markdown', function (markdown) {
    return function (text) {
      return markdown.makeHtml(text || '');
    };
  }]);

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
atomic_cms-0.4.0 vendor/assets/javascripts/angular-markdown.js
atomic_cms-0.3.3 vendor/assets/javascripts/angular-markdown.js
atomic_cms-0.3.2 vendor/assets/javascripts/angular-markdown.js
atomic_cms-0.3.1 vendor/assets/javascripts/angular-markdown.js
atomic_cms-0.3.0 vendor/assets/javascripts/angular-markdown.js
atomic_cms-0.2.5 vendor/assets/javascripts/angular-markdown.js
atomic_cms-0.2.3 vendor/assets/javascripts/angular-markdown.js
atomic_cms-0.2.2 vendor/assets/javascripts/angular-markdown.js