'use strict';

// Filters

var filters = angular.module('martianblogFilters', ['ngSanitize']);

filters.filter('calendar', function() {
	return function (input) {
		console.log(input);
		return moment(input, 'YYYY-MM-DD').calendar();
	};
});

filters.filter('markdown', function ($sce) {
	return function (input) {
		return $sce.trustAsHtml(marked(input));
	};
});
@@ -160,30 +160,8 @@
 ) %7B%0A
-%09%09console.log(input);%0A
 %09%09re
@@ -319,16 +319,38 @@
 (marked(
+(input==undefined)?%22%22:
 input));

Solve an error when input is undefined in ‘markdown’ filter.