title: Extend Markdown Parser to render custom code blocks
body: <p>I am building a static blog, which uses <a href="https://github.com/chjj/marked" rel="nofollow noreferrer">Marked</a> to parse markdown. I want to be able to have code blocks with tabs.
  I want to parse code that looks like this:</p>
  
  <pre><code>```JavaScript
  var geolocation = require("nativescript-geolocation");
  ```
  ```TypeScript
  import geolocation = require("nativescript-geolocation");
  ```
  </code></pre>
  
  <p>To something like this (from the angular2 docs), where the tab names would be <code>JavaScript</code> and <code>TypeScript</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/0W2Yr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0W2Yr.png" alt="enter image description here"></a></p>
  
  <p>I am programming in JavaScript (nodeJs), so I could manually render this if required? What would a custom implementation of a code block tab look like?</p>
  
  <p>I am not sure if there is a special name for these, as I can't really seem to find any examples or templates.</p>