title: Parsing YAML Front matter in Java
body: <p>I have to parse <a href="http://jekyllrb.com/docs/frontmatter/" rel="nofollow noreferrer"><code>YAML Front Matter</code></a> in <code>java</code> like <code>jekyll</code>, So Iooked into the source code, and <a href="https://github.com/mojombo/jekyll/blob/master/features/step_definitions/jekyll_steps.rb#L16" rel="nofollow noreferrer">found this</a> but I can't make much sense of it(I don't know much ruby).</p>
  
  <p>So My Question is, How do I parse <code>YAML Front Matter</code> in java ? </p>
  
  <p>I have <a href="https://bitbucket.org/asomov/snakeyaml" rel="nofollow noreferrer">snakeyaml</a> in my classpath and I would be parsing <code>YAML Front Matter</code> from a markdown file, for which I use <a href="https://github.com/sirthias/pegdown" rel="nofollow noreferrer">pegdown</a></p>