Sha256: 1f31325192114c5f919666722779e36cbd09673d67ba3b00a90137e3f440a370

Contents?: true

Size: 1.85 KB

Versions: 46

Compression:

Stored size: 1.85 KB

Contents

{
  "exercise": "markdown",
  "version": "1.1.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>Item 1</li><li>Item 2</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

46 entries across 46 versions & 1 rubygems

Version Path
trackler-2.2.1.91 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.90 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.89 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.88 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.87 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.86 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.85 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.84 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.83 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.82 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.81 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.80 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.79 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.78 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.77 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.76 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.75 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.74 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.73 problem-specifications/exercises/markdown/canonical-data.json
trackler-2.2.1.72 problem-specifications/exercises/markdown/canonical-data.json