Sha256: 98cb5d2d6d8b8ccc554770739f8944da175fcc2d431e557ec0641c78dc9e272a

Contents?: true

Size: 1.86 KB

Versions: 145

Compression:

Stored size: 1.86 KB

Contents

{
  "exercise": "markdown",
  "version": "1.0.0",
  "comments": [
    "Markdown is a shorthand for creating HTML from text strings."
  ],
  "cases": [
    {
      "description": "parses normal text as a paragraph",
      "property": "parse",
      "input": "This will be a paragraph",
      "expected": "<p>This will be a paragraph</p>"
    },
    {
      "description": "parsing italics",
      "property": "parse",
      "input": "_This will be italic_",
      "expected": "<p><em>This will be italic</em></p>"
    },
    {
      "description": "parsing bold text",
      "property": "parse",
      "input": "__This will be bold__",
      "expected": "<p><strong>This will be bold</strong></p>"
    },
    {
      "description": "mixed normal, italics and bold text",
      "property": "parse",
      "input": "This will _be_ __mixed__",
      "expected": "<p>This will <em>be</em> <strong>mixed</strong></p>"
    },
    {
      "description": "with h1 header level",
      "property": "parse",
      "input": "# This will be an h1",
      "expected": "<h1>This will be an h1</h1>"
    },
    {
      "description": "with h2 header level",
      "property": "parse",
      "input": "## This will be an h2",
      "expected": "<h2>This will be an h2</h2>"
    },
    {
      "description": "with h6 header level",
      "property": "parse",
      "input": "###### This will be an h6",
      "expected": "<h6>This will be an h6</h6>"
    },
    {
      "description": "unordered lists",
      "property": "parse",
      "input": "* Item 1\n* Item 2",
      "expected": "<ul><li><p>Item 1</p></li><li><p>Item 2</p></li></ul>"
    },
    {
      "description": "With a little bit of everything",
      "property": "parse",
      "input": "# Header!\n* __Bold Item__\n* _Italic Item_",
      "expected": "<h1>Header!</h1><ul><li><strong>Bold Item</strong></li><li><em>Italic Item</em></li></ul>"
    }
  ]
}

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
trackler-2.2.1.45 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.44 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.43 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.42 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.41 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.40 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.39 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.38 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.37 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.36 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.35 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.34 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.33 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.32 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.31 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.30 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.29 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.28 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.27 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.26 problem-specifications/exercises/markdown/canonical-data.json