title: Markdown to HTML in AngularJS
body: <p>I'm using Contentful API to pull in some content. It arrives as a json object to my Node server, which passes it to my Angular frontend. Content in the json object contains unprocessed markdown text.</p>
  
  <p>For example the Angular call might look like this:</p>
  
  <pre><code>var id = "asdf76f7g68sd7g";
  $http.get("/api/article/" + id).then(function(res){
    $scope.article = res.data;
  });
  </code></pre>
  
  <p>The object for $scope.article would then look similar to this:</p>
  
  <pre><code>$scope.article = {
    title: "Some title",
    content: "Lorem ipsum [dolor](http://google.com) sit amet, consectetur adipiscing elit. Integer iaculis turpis ut enim eleifend venenatis. Proin nec ante quis nulla porta finibus. Suspendisse at [mauris](http://google.com) nisi."
  };
  </code></pre>
  
  <p>In my HTML I would then display the content like so:</p>
  
  <pre><code>&lt;p&gt;{{article.title}}&lt;/p&gt;
  &lt;p&gt;{{article.content}}&lt;/p&gt;
  </code></pre>
  
  <p>The problem here is the markdown is not converted to HTML and renders as you see it in the object. How can I convert any markdown to HTML and render the results?</p>