diff options
Diffstat (limited to 'yarnlib/mdparser.py')
-rw-r--r-- | yarnlib/mdparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yarnlib/mdparser.py b/yarnlib/mdparser.py index 6d16772..6708369 100644 --- a/yarnlib/mdparser.py +++ b/yarnlib/mdparser.py @@ -25,7 +25,7 @@ from markdown.treeprocessors import Treeprocessor # # Classes for Markdown parsing. See python-markdown documentation # for details. We want to find all top level code blocks (indented -# four spaces in the Markdown), which we'll parse for story test +# four spaces in the Markdown), which we'll parse for scenario test # stuff later on. We create a Python markdown extension and use # "tree processor" to analyse the parsed ElementTree at the right # moment for top level <pre> blocks. @@ -50,7 +50,7 @@ class GatherCodeBlocks(Treeprocessor): # gatherer at the right time. It stores the list of top level # code blocks as the blocks attribute. -class ParseStoryTestBlocks(markdown.extensions.Extension): +class ParseScenarioTestBlocks(markdown.extensions.Extension): def extendMarkdown(self, md, md_globals): self.blocks = [] @@ -64,7 +64,7 @@ class MarkdownParser(object): self.blocks = [] def parse_string(self, text): - ext = ParseStoryTestBlocks() + ext = ParseScenarioTestBlocks() f = StringIO.StringIO() markdown.markdown(text, output=f, extensions=[ext]) self.blocks = ext.blocks |