Parsing Doc Strings
Learn how to parse doc strings using the Gherkin class.
We'll cover the following...
Parsing doc strings
We will begin parsing some more complicated structures, starting with Gherkin’s doc strings. Let’s familiarize ourselves again with the doc string syntax:
Feature: Feature Name
Scenario: Doc String Example One
Given a blog post named "Random" with Markdown body
"""
Some Title, Eh?
===============
Here is the first paragraph of my blog post. Lorem ipsum dolor
consectetur adipiscing elit.
"""
The strategy for parsing doc strings will be similar to our free-form descriptions. ...