jonmagic/slaw — pull request #1 by jonmagic (2014-02-16 15:08:26+00:00)
Title: WIP: Full markdown recipe support

Make this work:

```ruby
markdown = %q{
# Spaghetti Sauce

## Ingredients

* 2 tbsp extra virgin olive oil
* medium onion chopped
* 3 cloves of garlic finely chopped
* 1/2 teaspoon salt
* 1/2 teaspoon freshly ground pepper
* 2 tbsp Italian seasoning
* a tablespoon of tomato paste
* 3/4 cup red wine
* 48oz can whole San Marzano tomatoes in sauce

## Instructions

1. Heat 8 quart sauce pan on medium heat and add olive oil.
1. Saute onions until translucent and then add garlic and saute for 1 minute.
1. Add salt and pepper, Italian seasonings, and tomato paste, stir for 1 minute.
1. Add wine and stir until wine is reduced by half.
1. Add tomatoes and sauce to pan, breaking up the tomatoes.
1. Simmer for one hour or until at desired consistency.
1. Serve chunky or cool and blend for a smoother sauce.
}

recipe = Slaw.parse(recipe_text)
=>

ingredient_with_instructions = recipe.ingredient_instructions.first
=>
ingredient_with_instructions.measurement
=>
ingredient_with_instructions.measurement.quantity
=> 2.0
ingredient_with_instructions.measurement.unit
=>
ingredient_with_instructions.ingredient
=>

cooking_instruction = recipe.cooking_instructions.first
=>
cooking_instruction.temperature
=>
recipe.hardware
=> []

```