/*! ng-showdown 19-10-2015 */ !function(a,b){"function"==typeof define&&define.amd?define(["angular","showdown"],b):"object"==typeof module&&module.exports?module.exports=b(require("angular"),require("showdown")):a.ngShowdown=b(a.angular,a.showdown)}(this,function(a,b){function c(){function a(){var a=new b.Converter(c);this.makeHtml=function(b){return a.makeHtml(b)},this.stripHtml=function(a){return String(a).replace(/<[^>]+>/gm,"")},this.getOption=function(b){return a.getOption(b)},this.getOptions=function(){return a.getOptions()},this.setOption=function(b,c){return a.setOption(b,c),this}}var c={extensions:[],sanitize:!1};this.setOption=function(a,b){return c[a]=b,this},this.getOption=function(a){return c.hasOwnProperty(a)?c[a]:void 0},this.loadExtension=function(a){return c.extensions.push(a),this},this.$get=function(){return new a}}function d(a,b,c){return{restrict:"A",link:f(a,b,c),scope:{model:"=sdModelToHtml"},template:'
'}}function e(a,b,c){return{restrict:"A",link:f(a,b,c),scope:{model:"=markdownToHtml"},template:''}}function f(a,b,c){return function(d,e,f){d.$watch("model",function(e){var f;"string"==typeof e?(f=a.makeHtml(e),d.trustedHtml=a.getOption("sanitize")?b(f):c.trustAsHtml(f)):d.trustedHtml=typeof e})}}function g(a){return function(b){return a.stripHtml(b)}}if("undefined"==typeof a||"undefined"==typeof b)throw new Error("ng-showdown was not loaded because one of its dependencies (AngularJS or Showdown) was not met");return a.module("ng-showdown",["ngSanitize"]).provider("$showdown",c).directive("sdModelToHtml",["$showdown","$sanitize","$sce",d]).directive("markdownToHtml",["$showdown","$sanitize","$sce",e]).filter("sdStripHtml",["$showdown",g]).filter("stripHtml",["$showdown",g]),a.module("ng-showdown")}); //# sourceMappingURL=ng-showdown.min.js.map