diff --git a/exercises/markdown/canonical-data.json b/exercises/markdown/canonical-data.json index dd50e0aacf..3517f664bb 100644 --- a/exercises/markdown/canonical-data.json +++ b/exercises/markdown/canonical-data.json @@ -1,60 +1,61 @@ { - "#": [ + "exercise": "markdown", + "version": "1.0.0", + "comments": [ "Markdown is a shorthand for creating HTML from text strings." ], - "methods": { - "description": [ - "Check the public API is correct." - ], - "cases": [{ - "description": "must be able to parse a Markdown string", - "method": "parse", - "arity": 1 - }] - }, "cases": [ { - "description": "parses normal text as a paragraph", - "input": "This will be a paragraph", - "expected": "

This will be a paragraph

" + "description": "parses normal text as a paragraph", + "property": "parse", + "input": "This will be a paragraph", + "expected": "

This will be a paragraph

" }, { "description": "parsing italics", + "property": "parse", "input": "_This will be italic_", "expected": "

This will be italic

" }, { "description": "parsing bold text", + "property": "parse", "input": "__This will be bold__", "expected": "

This will be bold

" }, { "description": "mixed normal, italics and bold text", + "property": "parse", "input": "This will _be_ __mixed__", "expected": "

This will be mixed

" }, { "description": "with h1 header level", + "property": "parse", "input": "# This will be an h1", "expected": "

This will be an h1

" }, { "description": "with h2 header level", + "property": "parse", "input": "## This will be an h2", "expected": "

This will be an h2

" }, { "description": "with h6 header level", + "property": "parse", "input": "###### This will be an h6", "expected": "
This will be an h6
" }, { "description": "unordered lists", + "property": "parse", "input": "* Item 1\n* Item 2", "expected": "" }, { "description": "With a little bit of everything", + "property": "parse", "input": "# Header!\n* __Bold Item__\n* _Italic Item_", "expected": "

Header!

" }