Sha256: 0ecec05b9b72015d2d86efa9244ce4f672234d81e8f58b8c2f6c3e20209d1835
Contents?: true
Size: 1.79 KB
Versions: 117
Compression:
Stored size: 1.79 KB
Contents
{ "#": [ "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": "<p>This will be a paragraph</p>" }, { "description": "parsing italics", "input": "_This will be italic_", "expected": "<p><em>This will be italic</em></p>" }, { "description": "parsing bold text", "input": "__This will be bold__", "expected": "<p><strong>This will be bold</strong></p>" }, { "description": "mixed normal, italics and bold text", "input": "This will _be_ __mixed__", "expected": "<p>This will <em>be</em> <strong>mixed</strong></p>" }, { "description": "with h1 header level", "input": "# This will be an h1", "expected": "<h1>This will be an h1</h1>" }, { "description": "with h2 header level", "input": "## This will be an h2", "expected": "<h2>This will be an h2</h2>" }, { "description": "with h6 header level", "input": "###### This will be an h6", "expected": "<h6>This will be an h6</h6>" }, { "description": "unordered lists", "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", "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
117 entries across 117 versions & 1 rubygems