diff --git a/index.html b/index.html index bd4498f..a1734dc 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,8 @@
',c.querySelector("svg img")?d:b):function(b){b=""+b;try{b=encodeURI(b)}catch(d){return}var e=new a.XMLHttpRequest;e.responseType="document";e.open("GET","data:text/html;charset=utf-8,"+b,!1);e.send(null);b=e.response.body;b.firstChild.remove();return b}}(s,s.document)}).info({angularVersion:"1.7.5"});c.module("ngSanitize").filter("linky",["$sanitize",function(f){var h=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i, +t=/^mailto:/i,q=c.$$minErr("linky"),s=c.isDefined,A=c.isFunction,v=c.isObject,y=c.isString;return function(c,z,u){function r(c){c&&l.push(P(c))}function x(c,g){var f,a=p(c);l.push("');r(g);l.push("")}if(null==c||""===c)return c;if(!y(c))throw q("notstring",c);for(var p=A(u)?u:v(u)?function(){return u}:function(){return{}},n=c,l=[],w,m;c=n.match(h);)w=c[0],c[2]|| +c[4]||(w=(c[3]?"http://":"mailto:")+w),m=c.index,r(n.substr(0,m)),x(w,c[0].replace(t,"")),n=n.substring(m+c[0].length);r(n);return f(l.join(""))}}])})(window,window.angular); +//# sourceMappingURL=angular-sanitize.min.js.map diff --git a/scripts/app.js b/scripts/app.js index e4f52e1..97cf79b 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -1,4 +1,4 @@ -var app = angular.module("app", ["ngRoute"]); +var app = angular.module("app", ["ngRoute", "ngSanitize"]); app.config( function ($routeProvider) @@ -142,6 +142,14 @@ app.controller("footer", ] ); +app.filter("markdown", () => +{ + return function(input) + { + return marked(input); + } +}); + function currentTime() { var date = new Date(); diff --git a/templates/post.html b/templates/post.html index ba45896..e01a685 100644 --- a/templates/post.html +++ b/templates/post.html @@ -13,6 +13,6 @@ {{tag}} -