partial markdown implementation that renders using angular.js templates