title: How to embed a YouTube video in Markdown with Redcarpet for Rails?
body: <p>I'm using <a href="https://github.com/vmg/redcarpet" rel="nofollow">Redcarpet's Markdown parser</a> within Rails 4.1 so that staff can write messages to one another with some formatting. I want them to be able to embed youtube videos too. Maybe something like:</p>
  
  <pre><code>Hey, *check out* my video: [VMD-z2Xni8U](youtube)
  </code></pre>
  
  <p>That would output:</p>
  
  <p>Hey, <strong>check out</strong> my video: <code>&lt;iframe width="560" height="315" src="//www.youtube.com/embed/VMD-z2Xni8U" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;</code></p>
  
  <p>Is there any way to do this within Redcarpet's Markdown parser? I assume I would have to write a custom parser of some kind? What's the appropriate way to do this, if there is a way? Is there possibly a standard Markdown way of doing this?</p>