title: JavaScript Regex for Code Fencing in Markdown
body: <p>I'm trying to add support into showdown.js for code fencing, but I'm still sort of a noob at regex. Code fencing, if you don't know, is like this:</p>
  
  <pre><code>```javascript
  alert('hello world');
  ```
  </code></pre>
  
  <p>Then it'd create something like:</p>
  
  <pre><code>&lt;div class="highlight"&gt;
    &lt;pre lang="javascript"&gt;
      alert('hello world');
    &lt;/pre&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I go about capturing ```(anything)\n(anything)``` in JavaScript flavored regex?</p>